diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-02-09 16:57:06 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:48 -0400 |
commit | 320a46485c83e70e374afa8bdfe8cd39a801cd5d (patch) | |
tree | d5e13022fff40a10de261585995f7ebad52083b7 /drivers/media | |
parent | e23b290716ad9355d9f17b569c8c9e659ff68aa7 (diff) |
V4L/DVB (10629): tvp514x: try_count reaches 0, not -1
with while (try_count-- > 0) { ... } try_count reaches 0, not -1.
Cc: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/tvp514x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tvp514x.c b/drivers/media/video/tvp514x.c index 8e23aa53c29a..5f4cbc2b23c1 100644 --- a/drivers/media/video/tvp514x.c +++ b/drivers/media/video/tvp514x.c | |||
@@ -686,7 +686,7 @@ static int ioctl_s_routing(struct v4l2_int_device *s, | |||
686 | break; /* Input detected */ | 686 | break; /* Input detected */ |
687 | } | 687 | } |
688 | 688 | ||
689 | if ((current_std == STD_INVALID) || (try_count < 0)) | 689 | if ((current_std == STD_INVALID) || (try_count <= 0)) |
690 | return -EINVAL; | 690 | return -EINVAL; |
691 | 691 | ||
692 | decoder->current_std = current_std; | 692 | decoder->current_std = current_std; |