bug fix from zharkov@vista-control.com (Eugene Zharkov)
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 18 Jul 2004 00:40:18 +0000 (00:40 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 18 Jul 2004 00:40:18 +0000 (00:40 +0000)
comedi/drivers/ni_6527.c

index a2d9b7b6e44d82068249e5645367a503a8b790e0..1b94f0cf9b6378f3bfe80b01fcb149de0f911803 100644 (file)
@@ -204,8 +204,8 @@ static irqreturn_t ni6527_interrupt(int irq, void *d, struct pt_regs *regs)
        unsigned int status;
 
        status = readb(dev->iobase + Change_Status);
-       if(!status&MasterInterruptStatus)return IRQ_NONE;
-       if(!status&EdgeStatus)return IRQ_NONE;
+       if((status & MasterInterruptStatus) == 0) return IRQ_NONE;
+       if((status & EdgeStatus) == 0) return IRQ_NONE;
 
        writeb(ClrEdge | ClrOverflow, dev->iobase + Clear_Register);