Fix problem with DO subdevices in insn_rw_emulate_bits()
authorDavid Schleef <ds@schleef.org>
Tue, 10 Jul 2001 22:12:17 +0000 (22:12 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 10 Jul 2001 22:12:17 +0000 (22:12 +0000)
comedi/drivers.c

index 01b9707f6b4e8ad40d0f0af55c03df04fc4cf3c9..9dd1d609a54ffe4c9534c016b7dac1c5f710bd29 100644 (file)
@@ -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;
        }