From: David Schleef Date: Thu, 2 Oct 2003 19:58:19 +0000 (+0000) Subject: Fix incorrect return value of AI insn function X-Git-Tag: r0_7_69~187 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37505473f41ffb62a147f0a0759f5ea091b4a089;p=comedi.git Fix incorrect return value of AI insn function --- diff --git a/comedi/drivers/multiq3.c b/comedi/drivers/multiq3.c index bceab4f2..a6d373f8 100644 --- a/comedi/drivers/multiq3.c +++ b/comedi/drivers/multiq3.c @@ -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,