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/pvrusb2 | |
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/pvrusb2')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index 9e0f2b07b93b..24b3c1d94980 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |||
@@ -267,7 +267,7 @@ static long pvr2_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
267 | memset(&tmp,0,sizeof(tmp)); | 267 | memset(&tmp,0,sizeof(tmp)); |
268 | tmp.index = vi->index; | 268 | tmp.index = vi->index; |
269 | ret = 0; | 269 | ret = 0; |
270 | if ((vi->index < 0) || (vi->index >= fh->input_cnt)) { | 270 | if (vi->index >= fh->input_cnt) { |
271 | ret = -EINVAL; | 271 | ret = -EINVAL; |
272 | break; | 272 | break; |
273 | } | 273 | } |
@@ -331,7 +331,7 @@ static long pvr2_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
331 | case VIDIOC_S_INPUT: | 331 | case VIDIOC_S_INPUT: |
332 | { | 332 | { |
333 | struct v4l2_input *vi = (struct v4l2_input *)arg; | 333 | struct v4l2_input *vi = (struct v4l2_input *)arg; |
334 | if ((vi->index < 0) || (vi->index >= fh->input_cnt)) { | 334 | if (vi->index >= fh->input_cnt) { |
335 | ret = -ERANGE; | 335 | ret = -ERANGE; |
336 | break; | 336 | break; |
337 | } | 337 | } |