Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6eb0b99 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[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 <awalls@md.metrocast.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2aebbf67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {