Skip to content

Commit 1376b0a

Browse files
Dan Carpentergregkh
authored andcommitted
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: d35dcc8 ("staging: comedi: quatech_daqp_cs: fix daqp_ao_insn_write()") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7daf201 commit 1376b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/comedi/drivers/quatech_daqp_cs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ static int daqp_ao_insn_write(struct comedi_device *dev,
642642
/* Make sure D/A update mode is direct update */
643643
outb(0, dev->iobase + DAQP_AUX_REG);
644644

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

0 commit comments

Comments
 (0)