Staging: comedi: non working tests on unsigned cmd->convert_arg
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 23 Apr 2009 10:23:14 +0000 (12:23 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:32 +0000 (11:00 -0700)
Remove tests for negative unsigned.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/s626.c

index bf7e20492b28236962d930ff01aaa5fe72f454ec..d8f014563c1e7f873c83813e5b3bfb68d21ecb2a 100644 (file)
@@ -1886,31 +1886,16 @@ static int s626_ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s
                err++;
        }
 
-       if (cmd->start_src == TRIG_EXT && cmd->start_arg < 0) {
-               cmd->start_arg = 0;
-               err++;
-       }
-
        if (cmd->start_src == TRIG_EXT && cmd->start_arg > 39) {
                cmd->start_arg = 39;
                err++;
        }
 
-       if (cmd->scan_begin_src == TRIG_EXT && cmd->scan_begin_arg < 0) {
-               cmd->scan_begin_arg = 0;
-               err++;
-       }
-
        if (cmd->scan_begin_src == TRIG_EXT && cmd->scan_begin_arg > 39) {
                cmd->scan_begin_arg = 39;
                err++;
        }
 
-       if (cmd->convert_src == TRIG_EXT && cmd->convert_arg < 0) {
-               cmd->convert_arg = 0;
-               err++;
-       }
-
        if (cmd->convert_src == TRIG_EXT && cmd->convert_arg > 39) {
                cmd->convert_arg = 39;
                err++;