From de81c3c3f5db3ca35548c54024df50be18d64830 Mon Sep 17 00:00:00 2001 From: Roel Kluin Date: Thu, 2 Jul 2009 16:09:25 -0300 Subject: V4L/DVB (12199): remove redundant tests on unsigned input, inp and i are unsigned. When negative they are wrapped and caught by the other test. Cc: Andy Walls Signed-off-by: Roel Kluin Signed-off-by: Douglas Schilling Landgraf Signed-off-by: Mauro Carvalho Chehab --- drivers/media/dvb/ttpci/av7110_v4l.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/media/dvb/ttpci') diff --git a/drivers/media/dvb/ttpci/av7110_v4l.c b/drivers/media/dvb/ttpci/av7110_v4l.c index ce64c621..8986d96 100644 --- a/drivers/media/dvb/ttpci/av7110_v4l.c +++ b/drivers/media/dvb/ttpci/av7110_v4l.c @@ -490,7 +490,7 @@ static int vidioc_s_input(struct file *file, void *fh, unsigned int input) if (!av7110->analog_tuner_flags) return 0; - if (input < 0 || input >= 4) + if (input >= 4) return -EINVAL; av7110->current_input = input; -- cgit v1.1