Fix incorrect return value of AI insn function
authorDavid Schleef <ds@schleef.org>
Thu, 2 Oct 2003 19:58:19 +0000 (19:58 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 2 Oct 2003 19:58:19 +0000 (19:58 +0000)
comedi/drivers/multiq3.c

index bceab4f29ac23aff14d669787a9d1cd5ff60a78f..a6d373f8935c8da656432b8c97421817d3600fe8 100644 (file)
@@ -128,7 +128,7 @@ static int multiq3_ai_insn_read(comedi_device *dev,comedi_subdevice *s,
                data[n] = ((hi << 8) | lo) & 0xfff;
        }
 
-       return i;
+       return n;
 }
 
 static int multiq3_ao_insn_read(comedi_device *dev, comedi_subdevice *s,