From: David Schleef Date: Tue, 10 Jul 2001 22:12:17 +0000 (+0000) Subject: Fix problem with DO subdevices in insn_rw_emulate_bits() X-Git-Tag: r0_7_60~63 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fba2d8437b0c6516d49925c823d2a63cfd6306fc;p=comedi.git Fix problem with DO subdevices in insn_rw_emulate_bits() --- diff --git a/comedi/drivers.c b/comedi/drivers.c index 01b9707f..9dd1d609 100644 --- a/comedi/drivers.c +++ b/comedi/drivers.c @@ -363,8 +363,6 @@ static int insn_rw_emulate_bits(comedi_device *dev,comedi_subdevice *s, if(ret<0)return ret; if(insn->insn == INSN_READ){ - if(!(s->subdev_flags & SDF_READABLE)) - return -EINVAL; data[0] = (new_data[1]>>chan)&1; }