Skip to content

Commit

Permalink
[media] ivtv-ioctl.c: remove an useless check
Browse files Browse the repository at this point in the history
drivers/media/pci/ivtv/ivtv-ioctl.c: In function 'ivtv_s_input':
drivers/media/pci/ivtv/ivtv-ioctl.c:996:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

Cc: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 27, 2012
1 parent 2aebbf6 commit d6eb0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/pci/ivtv/ivtv-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ int ivtv_s_input(struct file *file, void *fh, unsigned int inp)
v4l2_std_id std;
int i;

if (inp < 0 || inp >= itv->nof_inputs)
if (inp >= itv->nof_inputs)
return -EINVAL;

if (inp == itv->active_input) {
Expand Down

0 comments on commit d6eb0b9

Please sign in to comment.