summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-04-23 10:23:14 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-19 18:00:32 (GMT)
commit46dbd1486e6c75f8cd136e3899015906f83cd8de (patch)
treeb404115526ad465e1eb2bbc18f0d8d5b10ed0360
parent0de302fd96535996350e663022d4e745fbaea2f9 (diff)
downloadlinux-fsl-qoriq-46dbd1486e6c75f8cd136e3899015906f83cd8de.tar.xz
Staging: comedi: non working tests on unsigned cmd->convert_arg
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>
-rw-r--r--drivers/staging/comedi/drivers/s626.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/staging/comedi/drivers/s626.c b/drivers/staging/comedi/drivers/s626.c
index bf7e204..d8f0145 100644
--- a/drivers/staging/comedi/drivers/s626.c
+++ b/drivers/staging/comedi/drivers/s626.c
@@ -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++;