Corrected i82527 IRQ handling loop.
authorppisa <ppisa>
Wed, 19 Jan 2005 20:08:04 +0000 (20:08 +0000)
committerppisa <ppisa>
Wed, 19 Jan 2005 20:08:04 +0000 (20:08 +0000)
Bug found by Stefan Peter from MPL AG

lincan/src/i82527.c

index 4ffad17..00dd885 100644 (file)
@@ -668,9 +668,7 @@ int i82527_irq_handler(int irq, struct canchip_t *chip)
                        i82527_irq_read_handler(chip, obj, object); 
                }
                
-               irq_register=i82527_seg_read_reg(chip, iIRQ);
-
-       } while(irq_register != 0);
+       } while((irq_register=i82527_seg_read_reg(chip, iIRQ)) != 0);
 
        return CANCHIP_IRQ_HANDLED;
 }