From: Frank Mori Hess Date: Sun, 18 Jul 2004 00:40:18 +0000 (+0000) Subject: bug fix from zharkov@vista-control.com (Eugene Zharkov) X-Git-Tag: r0_7_69~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=703f695bcb4ae4d02fa28ccf8a5284c3dc75b4a2;p=comedi.git bug fix from zharkov@vista-control.com (Eugene Zharkov) --- diff --git a/comedi/drivers/ni_6527.c b/comedi/drivers/ni_6527.c index a2d9b7b6..1b94f0cf 100644 --- a/comedi/drivers/ni_6527.c +++ b/comedi/drivers/ni_6527.c @@ -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);