diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-05-02 19:38:47 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-05-02 19:38:47 +0000 |
commit | b6846f8378e51e39a605b395c560986011bde203 (patch) | |
tree | 47c29b6e767ed4045ab84c563f80895cca320fc8 /linux/drivers/media/dvb/ttpci/av7110_v4l.c | |
parent | 0ea260891398ca8c39e7b6a524839125c0894ad9 (diff) | |
download | mediapointer-dvb-s2-b6846f8378e51e39a605b395c560986011bde203.tar.gz mediapointer-dvb-s2-b6846f8378e51e39a605b395c560986011bde203.tar.bz2 |
V4L/DVB: cleanup redundant tests on unsigned
From: Roel Kluin <roel.kluin@gmail.com>
Remove redundant tests on unsigned.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110_v4l.c')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_v4l.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_v4l.c b/linux/drivers/media/dvb/ttpci/av7110_v4l.c index 2210cff73..ce64c6214 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_v4l.c +++ b/linux/drivers/media/dvb/ttpci/av7110_v4l.c @@ -458,7 +458,7 @@ static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) dprintk(2, "VIDIOC_ENUMINPUT: %d\n", i->index); if (av7110->analog_tuner_flags) { - if (i->index < 0 || i->index >= 4) + if (i->index >= 4) return -EINVAL; } else { if (i->index != 0) |