Commit 46dbd148 authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman

Staging: comedi: non working tests on unsigned cmd->convert_arg

Remove tests for negative unsigned.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0de302fd
...@@ -1886,31 +1886,16 @@ static int s626_ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s ...@@ -1886,31 +1886,16 @@ static int s626_ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s
err++; 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) { if (cmd->start_src == TRIG_EXT && cmd->start_arg > 39) {
cmd->start_arg = 39; cmd->start_arg = 39;
err++; 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) { if (cmd->scan_begin_src == TRIG_EXT && cmd->scan_begin_arg > 39) {
cmd->scan_begin_arg = 39; cmd->scan_begin_arg = 39;
err++; 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) { if (cmd->convert_src == TRIG_EXT && cmd->convert_arg > 39) {
cmd->convert_arg = 39; cmd->convert_arg = 39;
err++; err++;
......
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