Commit f8165b7d authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: das08: No need to check insn->n for counter config

There is no need to check the value of `insn->n` is correct in
`das08_counter_config()` as the core comedi module will have already
checked it.
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4d31848a
...@@ -466,9 +466,6 @@ static int das08_counter_config(struct comedi_device *dev, ...@@ -466,9 +466,6 @@ static int das08_counter_config(struct comedi_device *dev,
unsigned long i8254_iobase = dev->iobase + thisboard->i8254_offset; unsigned long i8254_iobase = dev->iobase + thisboard->i8254_offset;
int chan = insn->chanspec; int chan = insn->chanspec;
if (insn->n != 2)
return -EINVAL;
switch (data[0]) { switch (data[0]) {
case INSN_CONFIG_SET_COUNTER_MODE: case INSN_CONFIG_SET_COUNTER_MODE:
i8254_set_mode(i8254_iobase, 0, chan, data[1]); i8254_set_mode(i8254_iobase, 0, chan, data[1]);
......
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