The chanlist_len is validated by the comedi core before calling
the do_cmdtest function. Remove these redundant checks.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
        /*  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)) {
                cmd->start_arg = 0;
                error++;