Skip to content

Commit

Permalink
staging: comedi: das08: No need to check insn->n for counter config
Browse files Browse the repository at this point in the history
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: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent 4d31848 commit f8165b7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/comedi/drivers/das08.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,6 @@ static int das08_counter_config(struct comedi_device *dev,
unsigned long i8254_iobase = dev->iobase + thisboard->i8254_offset;
int chan = insn->chanspec;

if (insn->n != 2)
return -EINVAL;

switch (data[0]) {
case INSN_CONFIG_SET_COUNTER_MODE:
i8254_set_mode(i8254_iobase, 0, chan, data[1]);
Expand Down

0 comments on commit f8165b7

Please sign in to comment.