summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7110.c
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-10-23 07:59:42 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 18:41:04 -0200
commitf14a2972e40dbfbe7077ec7ab21cc2729f7e7d6d (patch)
treea90af6ec74660e5a811d40e7af45578c1b1e104f /drivers/media/video/saa7110.c
parent311c70e1f906b7411b30f526ef15deb62cb37e7a (diff)
downloadblackbird-op-linux-f14a2972e40dbfbe7077ec7ab21cc2729f7e7d6d.tar.gz
blackbird-op-linux-f14a2972e40dbfbe7077ec7ab21cc2729f7e7d6d.zip
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/saa7110.c')
-rw-r--r--drivers/media/video/saa7110.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/saa7110.c b/drivers/media/video/saa7110.c
index 5c24c993ac16..3bca744e43af 100644
--- a/drivers/media/video/saa7110.c
+++ b/drivers/media/video/saa7110.c
@@ -304,7 +304,7 @@ static int saa7110_s_routing(struct v4l2_subdev *sd,
{
struct saa7110 *decoder = to_saa7110(sd);
- if (input < 0 || input >= SAA7110_MAX_INPUT) {
+ if (input >= SAA7110_MAX_INPUT) {
v4l2_dbg(1, debug, sd, "input=%d not available\n", input);
return -EINVAL;
}
OpenPOWER on IntegriCloud