- patches.suse/slab-handle-memoryless-nodes-v2a.patch: Refresh.
[linux-flexiantxendom0-3.2.10.git] / drivers / staging / comedi / drivers / addi-data / hwdrv_apci1516.c
index 3841635..866eb8d 100644 (file)
@@ -79,7 +79,7 @@ int i_APCI1516_Read1DigitalInput(struct comedi_device *dev, struct comedi_subdev
        unsigned int ui_TmpValue = 0;
        unsigned int ui_Channel;
        ui_Channel = CR_CHAN(insn->chanspec);
-       if (ui_Channel >= 0 && ui_Channel <= 7) {
+       if (ui_Channel <= 7) {
                ui_TmpValue = (unsigned int) inw(devpriv->iobase + APCI1516_DIGITAL_IP);
                /*   since only 1 channel reqd  to bring it to last bit it is rotated */
                /*   8 +(chan - 1) times then ANDed with 1 for last bit. */