Commit ba033759 authored by Dan Carpenter's avatar Dan Carpenter Committed by Stefan Bader

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

BugLink: https://bugs.launchpad.net/bugs/1784409

commit 1376b0a2 upstream.

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>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent 5595683d
......@@ -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 val = data[i];
int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment