mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-11 14:14:53 -05:00
staging: comedi: me4000: use bitwise AND instead of logical
This was supposed to bitwise AND but there is a typo.
Fixes: 1a02387063 ('staging: comedi: me4000: remove 'board' from me4000_ai_insn_read()')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ad83dbd974
commit
358d577ce1
@@ -480,7 +480,7 @@ static int me4000_ai_insn_read(struct comedi_device *dev,
|
||||
|
||||
entry = chan | ME4000_AI_LIST_RANGE(range);
|
||||
if (aref == AREF_DIFF) {
|
||||
if (!(s->subdev_flags && SDF_DIFF)) {
|
||||
if (!(s->subdev_flags & SDF_DIFF)) {
|
||||
dev_err(dev->class_dev,
|
||||
"Differential inputs are not available\n");
|
||||
return -EINVAL;
|
||||
@@ -559,7 +559,7 @@ static int me4000_ai_check_chanlist(struct comedi_device *dev,
|
||||
}
|
||||
|
||||
if (aref == AREF_DIFF) {
|
||||
if (!(s->subdev_flags && SDF_DIFF)) {
|
||||
if (!(s->subdev_flags & SDF_DIFF)) {
|
||||
dev_err(dev->class_dev,
|
||||
"Differential inputs are not available\n");
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user