Commit e6e69aa1 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: adl_pci9111: remove chanlist_len checks

The chanlist_len is validated by the comedi core before calling
the do_cmdtest function. Remove these redundant checks.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3acf3176
...@@ -514,16 +514,6 @@ pci9111_ai_do_cmd_test(struct comedi_device *dev, ...@@ -514,16 +514,6 @@ pci9111_ai_do_cmd_test(struct comedi_device *dev,
/* Step 3 : make sure arguments are trivialy compatible */ /* Step 3 : make sure arguments are trivialy compatible */
if (cmd->chanlist_len < 1) {
cmd->chanlist_len = 1;
error++;
}
if (cmd->chanlist_len > board->ai_channel_nbr) {
cmd->chanlist_len = board->ai_channel_nbr;
error++;
}
if ((cmd->start_src == TRIG_NOW) && (cmd->start_arg != 0)) { if ((cmd->start_src == TRIG_NOW) && (cmd->start_arg != 0)) {
cmd->start_arg = 0; cmd->start_arg = 0;
error++; error++;
......
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