diff options
author | Douglas Schilling Landgraf <dougsland@redhat.com> | 2009-06-11 11:28:17 -0300 |
---|---|---|
committer | Douglas Schilling Landgraf <dougsland@redhat.com> | 2009-06-11 11:28:17 -0300 |
commit | 95a8589d453617556e56dfc53de6f18da19863a5 (patch) | |
tree | f30f771ab0f84f3a46466060fe7750260623a20f /linux/drivers/media/video | |
parent | f554e1de646717a1ccbdb6af28fc936c1f80af46 (diff) | |
download | mediapointer-dvb-s2-95a8589d453617556e56dfc53de6f18da19863a5.tar.gz mediapointer-dvb-s2-95a8589d453617556e56dfc53de6f18da19863a5.tar.bz2 |
tvp514x: try_count off by one
From: Roel Kluin <roel.kluin@gmail.com>
With `while (try_count-- > 0)' try_count reaches -1 after the loop.
Priority: normal
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/tvp514x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tvp514x.c b/linux/drivers/media/video/tvp514x.c index 4262e60b8..3750f7fad 100644 --- a/linux/drivers/media/video/tvp514x.c +++ b/linux/drivers/media/video/tvp514x.c @@ -692,7 +692,7 @@ static int ioctl_s_routing(struct v4l2_int_device *s, break; /* Input detected */ } - if ((current_std == STD_INVALID) || (try_count <= 0)) + if ((current_std == STD_INVALID) || (try_count < 0)) return -EINVAL; decoder->current_std = current_std; |