summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-02-09 21:57:06 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-02-09 21:57:06 +0000
commitae420af84b9a311c94b8c41557e700a13fe2f520 (patch)
tree7f987da07e0c2cd5aec31d9602bfab65c372fd2f /linux/drivers
parentfa940b36a68186b4e5b77a5afb929f68603b52bf (diff)
downloadmediapointer-dvb-s2-ae420af84b9a311c94b8c41557e700a13fe2f520.tar.gz
mediapointer-dvb-s2-ae420af84b9a311c94b8c41557e700a13fe2f520.tar.bz2
tvp514x: try_count reaches 0, not -1
From: Roel Kluin <roel.kluin@gmail.com> with while (try_count-- > 0) { ... } try_count reaches 0, not -1. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> CC: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/tvp514x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tvp514x.c b/linux/drivers/media/video/tvp514x.c
index 8e23aa53c..5f4cbc2b2 100644
--- a/linux/drivers/media/video/tvp514x.c
+++ b/linux/drivers/media/video/tvp514x.c
@@ -686,7 +686,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;