Commit 358d577c authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

staging: comedi: me4000: use bitwise AND instead of logical

This was supposed to bitwise AND but there is a typo.

Fixes: 1a023870 ('staging: comedi: me4000: remove 'board' from me4000_ai_insn_read()')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ad83dbd9
...@@ -480,7 +480,7 @@ static int me4000_ai_insn_read(struct comedi_device *dev, ...@@ -480,7 +480,7 @@ static int me4000_ai_insn_read(struct comedi_device *dev,
entry = chan | ME4000_AI_LIST_RANGE(range); entry = chan | ME4000_AI_LIST_RANGE(range);
if (aref == AREF_DIFF) { if (aref == AREF_DIFF) {
if (!(s->subdev_flags && SDF_DIFF)) { if (!(s->subdev_flags & SDF_DIFF)) {
dev_err(dev->class_dev, dev_err(dev->class_dev,
"Differential inputs are not available\n"); "Differential inputs are not available\n");
return -EINVAL; return -EINVAL;
...@@ -559,7 +559,7 @@ static int me4000_ai_check_chanlist(struct comedi_device *dev, ...@@ -559,7 +559,7 @@ static int me4000_ai_check_chanlist(struct comedi_device *dev,
} }
if (aref == AREF_DIFF) { if (aref == AREF_DIFF) {
if (!(s->subdev_flags && SDF_DIFF)) { if (!(s->subdev_flags & SDF_DIFF)) {
dev_err(dev->class_dev, dev_err(dev->class_dev,
"Differential inputs are not available\n"); "Differential inputs are not available\n");
return -EINVAL; return -EINVAL;
......
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