summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci
diff options
context:
space:
mode:
authorRoel Kluin2009-07-02 21:09:25 +0200
committerMauro Carvalho Chehab2009-09-12 17:17:23 +0200
commitde81c3c3f5db3ca35548c54024df50be18d64830 (patch)
tree6af23fee7656ecb733570789f8429cb7dd0305ea /drivers/media/dvb/ttpci
parentV4L/DVB (12198): ivtv-driver.c: Remove unnecessary semicolons (diff)
downloadkernel-qcow2-linux-de81c3c3f5db3ca35548c54024df50be18d64830.tar.gz
kernel-qcow2-linux-de81c3c3f5db3ca35548c54024df50be18d64830.tar.xz
kernel-qcow2-linux-de81c3c3f5db3ca35548c54024df50be18d64830.zip
V4L/DVB (12199): remove redundant tests on unsigned
input, inp and i are unsigned. When negative they are wrapped and caught by the other test. Cc: Andy Walls <awalls@radix.net> Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/ttpci')
-rw-r--r--drivers/media/dvb/ttpci/av7110_v4l.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/ttpci/av7110_v4l.c b/drivers/media/dvb/ttpci/av7110_v4l.c
index ce64c6214cc4..8986d967d2f4 100644
--- a/drivers/media/dvb/ttpci/av7110_v4l.c
+++ b/drivers/media/dvb/ttpci/av7110_v4l.c
@@ -490,7 +490,7 @@ static int vidioc_s_input(struct file *file, void *fh, unsigned int input)
if (!av7110->analog_tuner_flags)
return 0;
- if (input < 0 || input >= 4)
+ if (input >= 4)
return -EINVAL;
av7110->current_input = input;