diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-10-23 06:59:42 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:04 -0500 |
commit | f14a2972e40dbfbe7077ec7ab21cc2729f7e7d6d (patch) | |
tree | a90af6ec74660e5a811d40e7af45578c1b1e104f /drivers/media/video/s2255drv.c | |
parent | 311c70e1f906b7411b30f526ef15deb62cb37e7a (diff) |
V4L/DVB (13241): Cleanup redundant tests on unsigned
The variables are unsigned so the test `>= 0' is always true,
the `< 0' test always fails. In these cases the other part of
the test catches wrapped values.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/s2255drv.c')
-rw-r--r-- | drivers/media/video/s2255drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/s2255drv.c b/drivers/media/video/s2255drv.c index 2c0bb06cab3b..d0824f3c734f 100644 --- a/drivers/media/video/s2255drv.c +++ b/drivers/media/video/s2255drv.c | |||
@@ -1958,7 +1958,7 @@ static int save_frame(struct s2255_dev *dev, struct s2255_pipeinfo *pipe_info) | |||
1958 | if (pdword[1] >= MAX_CHANNELS) | 1958 | if (pdword[1] >= MAX_CHANNELS) |
1959 | break; | 1959 | break; |
1960 | cc = G_chnmap[pdword[1]]; | 1960 | cc = G_chnmap[pdword[1]]; |
1961 | if (!(cc >= 0 && cc < MAX_CHANNELS)) | 1961 | if (cc >= MAX_CHANNELS) |
1962 | break; | 1962 | break; |
1963 | switch (pdword[2]) { | 1963 | switch (pdword[2]) { |
1964 | case S2255_RESPONSE_SETMODE: | 1964 | case S2255_RESPONSE_SETMODE: |