Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1376b0a2 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

staging: comedi: quatech_daqp_cs: fix no-op loop daqp_ao_insn_write()



There is a '>' vs '<' typo so this loop is a no-op.

Fixes: d35dcc89 ("staging: comedi: quatech_daqp_cs: fix daqp_ao_insn_write()")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7daf201d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -642,7 +642,7 @@ static int daqp_ao_insn_write(struct comedi_device *dev,
	/* Make sure D/A update mode is direct update */
	outb(0, dev->iobase + DAQP_AUX_REG);

	for (i = 0; i > insn->n; i++) {
	for (i = 0; i < insn->n; i++) {
		unsigned int val = data[i];
		int ret;