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

staging: comedi: adl_pci9118: if test should use logical AND not bitwise AND

This quiets a couple sparse warnings about:

warning: dubious: !x & y

Also, remove the unnecessary parentheses around 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 47db6d58
...@@ -1735,7 +1735,7 @@ static int check_channel_list(struct comedi_device *dev, ...@@ -1735,7 +1735,7 @@ static int check_channel_list(struct comedi_device *dev,
"can't be mixtured!"); "can't be mixtured!");
return 0; return 0;
} }
if ((!devpriv->usemux) & (differencial) & if (!devpriv->usemux && differencial &&
(CR_CHAN(chanlist[i]) >= this_board->n_aichand)) { (CR_CHAN(chanlist[i]) >= this_board->n_aichand)) {
comedi_error(dev, comedi_error(dev,
"If AREF_DIFF is used then is " "If AREF_DIFF is used then is "
......
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