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/video/mxb.c | |
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/video/mxb.c')
-rw-r--r-- | drivers/media/video/mxb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/mxb.c b/drivers/media/video/mxb.c index 3be5a71bdac2..35890e8b2431 100644 --- a/drivers/media/video/mxb.c +++ b/drivers/media/video/mxb.c | |||
@@ -453,7 +453,7 @@ static int vidioc_s_ctrl(struct file *file, void *fh, struct v4l2_control *vc) | |||
453 | static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) | 453 | static int vidioc_enum_input(struct file *file, void *fh, struct v4l2_input *i) |
454 | { | 454 | { |
455 | DEB_EE(("VIDIOC_ENUMINPUT %d.\n", i->index)); | 455 | DEB_EE(("VIDIOC_ENUMINPUT %d.\n", i->index)); |
456 | if (i->index < 0 || i->index >= MXB_INPUTS) | 456 | if (i->index >= MXB_INPUTS) |
457 | return -EINVAL; | 457 | return -EINVAL; |
458 | memcpy(i, &mxb_inputs[i->index], sizeof(struct v4l2_input)); | 458 | memcpy(i, &mxb_inputs[i->index], sizeof(struct v4l2_input)); |
459 | return 0; | 459 | return 0; |
@@ -616,7 +616,7 @@ static int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *a) | |||
616 | struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; | 616 | struct saa7146_dev *dev = ((struct saa7146_fh *)fh)->dev; |
617 | struct mxb *mxb = (struct mxb *)dev->ext_priv; | 617 | struct mxb *mxb = (struct mxb *)dev->ext_priv; |
618 | 618 | ||
619 | if (a->index < 0 || a->index > MXB_INPUTS) { | 619 | if (a->index > MXB_INPUTS) { |
620 | DEB_D(("VIDIOC_G_AUDIO %d out of range.\n", a->index)); | 620 | DEB_D(("VIDIOC_G_AUDIO %d out of range.\n", a->index)); |
621 | return -EINVAL; | 621 | return -EINVAL; |
622 | } | 622 | } |