added some tools that the foxboard users are used to, when working with the fox
[openwrt.git] / target / linux / adm5120-2.6 / files / arch / mips / adm5120 / irq.c
index 46f3bb0..c53272e 100644 (file)
@@ -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)
This page took 0.020763 seconds and 4 git commands to generate.