projects
/
sx
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
regExp
home
|
summary
|
tags
|
heads
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
raw
|
patch
| inline |
side by side
(parent:
3c84d92
)
Commit
f91dd3b55d0a4051bdd402e796c1d62bc819742b
author
Sami Liedes
<sliedes@cc.hut.fi>
Wed, 23 Feb 2011 02:14:29 +0000
(
04:14
+0200)
committer
Michel Pollet
<buserror@gmail.com>
Wed, 23 Feb 2011 11:15:21 +0000
(11:15 +0000)
The done flag is nowadays redundant as it's never read after it's set.
Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
simavr/sim/sim_interrupts.c
patch
|
blob
|
history
|
download
diff --git
a/simavr/sim/sim_interrupts.c
b/simavr/sim/sim_interrupts.c
index e4a2683ad0b69ca55bd33ede67878a3bb653a5a6..a52ea4881d6ef0a0dcdd7d7edf3db689ec26f268 100644
(file)
--- 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;