Commit e26d925f authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: pcl816: if test should use logical OR not bitwise OR

This quiets a couple sparse warnings about:

warning: dubious: !x | !y
warning: dubious: x | !y

Also, remove the unnecessary parentheses abound the variables.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0bdf8ec0
...@@ -414,8 +414,8 @@ static irqreturn_t interrupt_pcl816(int irq, void *d) ...@@ -414,8 +414,8 @@ static irqreturn_t interrupt_pcl816(int irq, void *d)
} }
outb(0, dev->iobase + PCL816_CLRINT); /* clear INT request */ outb(0, dev->iobase + PCL816_CLRINT); /* clear INT request */
if ((!dev->irq) | (!devpriv->irq_free) | (!devpriv->irq_blocked) | if (!dev->irq || !devpriv->irq_free || !devpriv->irq_blocked ||
(!devpriv->int816_mode)) { !devpriv->int816_mode) {
if (devpriv->irq_was_now_closed) { if (devpriv->irq_was_now_closed) {
devpriv->irq_was_now_closed = 0; devpriv->irq_was_now_closed = 0;
/* comedi_error(dev,"last IRQ.."); */ /* comedi_error(dev,"last IRQ.."); */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment