[media] ivtv-ioctl.c: remove an useless check
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 15:52:19 +0000 (12:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 20:04:33 +0000 (18:04 -0200)
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>
drivers/media/pci/ivtv/ivtv-ioctl.c

index 31a69ebdc7a42fed5ccb61fb51cb5774db27b674..7a8b0d0b6127aefbc1281e30108c2ef1050e9e79 100644 (file)
@@ -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) {