staging: comedi: dt282x: remove redundant comedi_check_trigger_arg_min()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 23 Mar 2016 19:24:30 +0000 (12:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
The 'convert_arg' sets the acquisition timing of the analog input command.
The maximum speed (the minimum timing) depends on the board 'ai_speed' which
if always >= 4000. Remove the redundant 'min' check,

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt282x.c

index e6958eaf517872427e563dabfce86ae3a15dfd5e..661c3ada0712fabae0d23a564878a2a787520e7c 100644 (file)
@@ -697,11 +697,7 @@ static int dt282x_ai_cmdtest(struct comedi_device *dev,
        /* Step 3: check if arguments are trivially valid */
 
        err |= comedi_check_trigger_arg_is(&cmd->start_arg, 0);
-
        err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0);
-
-       err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 4000);
-
        err |= comedi_check_trigger_arg_max(&cmd->convert_arg, DT2821_OSC_MAX);
        err |= comedi_check_trigger_arg_min(&cmd->convert_arg, board->ai_speed);
        err |= comedi_check_trigger_arg_is(&cmd->scan_end_arg,