diff options
author | Douglas Schilling Landgraf <dougsland@redhat.com> | 2009-07-02 16:09:25 -0300 |
---|---|---|
committer | Douglas Schilling Landgraf <dougsland@redhat.com> | 2009-07-02 16:09:25 -0300 |
commit | a9ce895e4fbe314a0e7d2b967f576367a8c38acb (patch) | |
tree | 20fc4e599e713232d96f3e06654cc2c356fed7b1 /linux/drivers/media/dvb/ttpci/av7110_v4l.c | |
parent | 245f6c63367b27a65d9c74ed93f133dfa0684d7b (diff) | |
download | mediapointer-dvb-s2-a9ce895e4fbe314a0e7d2b967f576367a8c38acb.tar.gz mediapointer-dvb-s2-a9ce895e4fbe314a0e7d2b967f576367a8c38acb.tar.bz2 |
remove redundant tests on unsigned
From: Roel Kluin <roel.kluin@gmail.com>
input, inp and i are unsigned. When negative they are wrapped and caught by the
other test.
Priority: normal
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
CC: Andy Walls <awalls@radix.net>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110_v4l.c')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_v4l.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_v4l.c b/linux/drivers/media/dvb/ttpci/av7110_v4l.c index ce64c6214..8986d967d 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_v4l.c +++ b/linux/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; |