From: Mauro Carvalho Chehab Date: Sat, 27 Oct 2012 15:52:19 +0000 (-0300) Subject: [media] ivtv-ioctl.c: remove an useless check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6eb0b992aafcbd34b33075458106aad03a0adb8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] ivtv-ioctl.c: remove an useless check 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/ivtv/ivtv-ioctl.c b/drivers/media/pci/ivtv/ivtv-ioctl.c index 31a69ebdc7a4..7a8b0d0b6127 100644 --- a/drivers/media/pci/ivtv/ivtv-ioctl.c +++ b/drivers/media/pci/ivtv/ivtv-ioctl.c @@ -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) {