From f91dd3b55d0a4051bdd402e796c1d62bc819742b Mon Sep 17 00:00:00 2001 From: Sami Liedes Date: Wed, 23 Feb 2011 04:14:29 +0200 Subject: [PATCH] Remove unused variable from avr_service_interrupts(). The done flag is nowadays redundant as it's never read after it's set. Signed-off-by: Sami Liedes --- simavr/sim/sim_interrupts.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/simavr/sim/sim_interrupts.c b/simavr/sim/sim_interrupts.c index e4a2683..a52ea48 100644 --- a/simavr/sim/sim_interrupts.c +++ b/simavr/sim/sim_interrupts.c @@ -128,8 +128,7 @@ void avr_service_interrupts(avr_t * avr) if (avr->pending_wait) { avr->pending_wait--; if (avr->pending_wait == 0) { - int done = 0; - for (int bi = 0; bi < 2 && !done; bi++) + for (int bi = 0; bi < 2; bi++) if (avr->pending[bi]) { uint32_t map = avr->pending[bi]; while (map) { @@ -148,7 +147,6 @@ void avr_service_interrupts(avr_t * avr) avr->pc = v * avr->vector_size; avr_clear_interrupt(avr, v); - done = 1; break; } break; -- 2.39.5