diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-10-23 06:59:42 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:04 -0500 |
commit | f14a2972e40dbfbe7077ec7ab21cc2729f7e7d6d (patch) | |
tree | a90af6ec74660e5a811d40e7af45578c1b1e104f /drivers/media/video/usbvision/usbvision-video.c | |
parent | 311c70e1f906b7411b30f526ef15deb62cb37e7a (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/usbvision/usbvision-video.c')
-rw-r--r-- | drivers/media/video/usbvision/usbvision-video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c index a2a50d608a3f..c07b0ac452ab 100644 --- a/drivers/media/video/usbvision/usbvision-video.c +++ b/drivers/media/video/usbvision/usbvision-video.c | |||
@@ -601,7 +601,7 @@ static int vidioc_s_input (struct file *file, void *priv, unsigned int input) | |||
601 | { | 601 | { |
602 | struct usb_usbvision *usbvision = video_drvdata(file); | 602 | struct usb_usbvision *usbvision = video_drvdata(file); |
603 | 603 | ||
604 | if ((input >= usbvision->video_inputs) || (input < 0) ) | 604 | if (input >= usbvision->video_inputs) |
605 | return -EINVAL; | 605 | return -EINVAL; |
606 | 606 | ||
607 | mutex_lock(&usbvision->lock); | 607 | mutex_lock(&usbvision->lock); |