From 37505473f41ffb62a147f0a0759f5ea091b4a089 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 2 Oct 2003 19:58:19 +0000 Subject: [PATCH] Fix incorrect return value of AI insn function --- comedi/drivers/multiq3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.26.2