X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/14f5c350584f1b0f282cfe7724965fb44494b3eb..c30dde79405b135b38cea530745b66516896b0ea:/target/linux/adm5120-2.6/files/arch/mips/adm5120/irq.c diff --git a/target/linux/adm5120-2.6/files/arch/mips/adm5120/irq.c b/target/linux/adm5120-2.6/files/arch/mips/adm5120/irq.c index 46f3bb05e..c53272e1e 100644 --- a/target/linux/adm5120-2.6/files/arch/mips/adm5120/irq.c +++ b/target/linux/adm5120-2.6/files/arch/mips/adm5120/irq.c @@ -48,11 +48,12 @@ void adm5120_hw0_irqdispatch(struct pt_regs *regs) intsrc = ADM5120_INTC_STATUS & ADM5120_IRQ_MASK; - for (i = 0; intsrc; intsrc >>= 1, i++) - if (intsrc & 0x1) - do_IRQ(i); - else - spurious_interrupt(); + if (intsrc) { + for (i = 0; intsrc; intsrc >>= 1, i++) + if (intsrc & 0x1) + do_IRQ(i); + } else + spurious_interrupt(); } void mips_timer_interrupt(struct pt_regs *regs)