summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx18/cx18-ioctl.c
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@redhat.com>2009-07-02 16:09:25 -0300
committerDouglas Schilling Landgraf <dougsland@redhat.com>2009-07-02 16:09:25 -0300
commita9ce895e4fbe314a0e7d2b967f576367a8c38acb (patch)
tree20fc4e599e713232d96f3e06654cc2c356fed7b1 /linux/drivers/media/video/cx18/cx18-ioctl.c
parent245f6c63367b27a65d9c74ed93f133dfa0684d7b (diff)
downloadmediapointer-dvb-s2-a9ce895e4fbe314a0e7d2b967f576367a8c38acb.tar.gz
mediapointer-dvb-s2-a9ce895e4fbe314a0e7d2b967f576367a8c38acb.tar.bz2
remove redundant tests on unsigned
From: Roel Kluin <roel.kluin@gmail.com> input, inp and i are unsigned. When negative they are wrapped and caught by the other test. Priority: normal Signed-off-by: Roel Kluin <roel.kluin@gmail.com> CC: Andy Walls <awalls@radix.net> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/cx18/cx18-ioctl.c')
-rw-r--r--linux/drivers/media/video/cx18/cx18-ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-ioctl.c b/linux/drivers/media/video/cx18/cx18-ioctl.c
index 65e2ef425..107b57880 100644
--- a/linux/drivers/media/video/cx18/cx18-ioctl.c
+++ b/linux/drivers/media/video/cx18/cx18-ioctl.c
@@ -613,7 +613,7 @@ int cx18_s_input(struct file *file, void *fh, unsigned int inp)
if (ret)
return ret;
- if (inp < 0 || inp >= cx->nof_inputs)
+ if (inp >= cx->nof_inputs)
return -EINVAL;
if (inp == cx->active_input) {