diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-05-02 15:38:47 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 17:20:58 -0400 |
commit | 223ffe5f8270ba9d069f1cbff9acec095a6f58b1 (patch) | |
tree | c9b7f1288f2b16c9b4466f5a643ec34ac71fbb15 /drivers/media/dvb/ttpci | |
parent | ca19d84295c2579229c5478db8b0f9cd7e821685 (diff) |
V4L/DVB: cleanup redundant tests on unsigned
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 'drivers/media/dvb/ttpci')
-rw-r--r-- | drivers/media/dvb/ttpci/av7110_v4l.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/budget-av.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/ttpci/av7110_v4l.c b/drivers/media/dvb/ttpci/av7110_v4l.c index 2210cff738e6..ce64c6214cc4 100644 --- a/drivers/media/dvb/ttpci/av7110_v4l.c +++ b/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) | |||
458 | dprintk(2, "VIDIOC_ENUMINPUT: %d\n", i->index); | 458 | dprintk(2, "VIDIOC_ENUMINPUT: %d\n", i->index); |
459 | 459 | ||
460 | if (av7110->analog_tuner_flags) { | 460 | if (av7110->analog_tuner_flags) { |
461 | if (i->index < 0 || i->index >= 4) | 461 | if (i->index >= 4) |
462 | return -EINVAL; | 462 | return -EINVAL; |
463 | } else { | 463 | } else { |
464 | if (i->index != 0) | 464 | if (i->index != 0) |
diff --git a/drivers/media/dvb/ttpci/budget-av.c b/drivers/media/dvb/ttpci/budget-av.c index 855fe74b640b..8ea915227674 100644 --- a/drivers/media/dvb/ttpci/budget-av.c +++ b/drivers/media/dvb/ttpci/budget-av.c | |||
@@ -1413,7 +1413,7 @@ static struct v4l2_input knc1_inputs[KNC1_INPUTS] = { | |||
1413 | static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) | 1413 | static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) |
1414 | { | 1414 | { |
1415 | dprintk(1, "VIDIOC_ENUMINPUT %d.\n", i->index); | 1415 | dprintk(1, "VIDIOC_ENUMINPUT %d.\n", i->index); |
1416 | if (i->index < 0 || i->index >= KNC1_INPUTS) | 1416 | if (i->index >= KNC1_INPUTS) |
1417 | return -EINVAL; | 1417 | return -EINVAL; |
1418 | memcpy(i, &knc1_inputs[i->index], sizeof(struct v4l2_input)); | 1418 | memcpy(i, &knc1_inputs[i->index], sizeof(struct v4l2_input)); |
1419 | return 0; | 1419 | return 0; |