aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/hexium_orion.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-10-23 06:59:42 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 15:41:04 -0500
commitf14a2972e40dbfbe7077ec7ab21cc2729f7e7d6d (patch)
treea90af6ec74660e5a811d40e7af45578c1b1e104f /drivers/media/video/hexium_orion.c
parent311c70e1f906b7411b30f526ef15deb62cb37e7a (diff)
V4L/DVB (13241): Cleanup redundant tests on unsigned
The variables are unsigned so the test `>= 0' is always true, the `< 0' test always fails. In these cases the other part of the test catches wrapped values. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/hexium_orion.c')
-rw-r--r--drivers/media/video/hexium_orion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/hexium_orion.c b/drivers/media/video/hexium_orion.c
index 39d65ca41c6..938a1f8f880 100644
--- a/drivers/media/video/hexium_orion.c
+++ b/drivers/media/video/hexium_orion.c
@@ -350,7 +350,7 @@ static int vidioc_s_input(struct file *file, void *fh, unsigned int input)
350 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; 350 struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev;
351 struct hexium *hexium = (struct hexium *) dev->ext_priv; 351 struct hexium *hexium = (struct hexium *) dev->ext_priv;
352 352
353 if (input < 0 || input >= HEXIUM_INPUTS) 353 if (input >= HEXIUM_INPUTS)
354 return -EINVAL; 354 return -EINVAL;
355 355
356 hexium->cur_input = input; 356 hexium->cur_input = input;