From: Sami Liedes Date: Wed, 23 Feb 2011 02:14:29 +0000 (+0200) Subject: Remove unused variable from avr_service_interrupts(). X-Git-Tag: v1.0a7~13 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=f91dd3b55d0a4051bdd402e796c1d62bc819742b;p=sx%2Fsimavr.git 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 --- 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;