Skip to content

Commit

Permalink
staging: comedi: quatech_daqp_cs: fix no-op loop daqp_ao_insn_write()
Browse files Browse the repository at this point in the history
commit 1376b0a upstream.

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

Fixes: d35dcc8 ("staging: comedi: quatech_daqp_cs: fix daqp_ao_insn_write()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Jul 11, 2018
1 parent 362aa58 commit 2aeef3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/quatech_daqp_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2aeef3f

Please sign in to comment.