This was supposed to bitwise AND but there is a typo.
Fixes:
1a02387063fb ('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>
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;
}
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;