mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 11:51:27 +00:00
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: d35dcc89fc
("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>
This commit is contained in:
parent
7daf201d7f
commit
1376b0a216
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user