projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e23b290
)
V4L/DVB (10629): tvp514x: try_count reaches 0, not -1
author
Roel Kluin
<roel.kluin@gmail.com>
Mon, 9 Feb 2009 21:57:06 +0000
(18:57 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:48 +0000
(12:42 -0300)
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>
drivers/media/video/tvp514x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/media/video/tvp514x.c
b/drivers/media/video/tvp514x.c
index 8e23aa53c29ac7e06ac54c646fb5a97397a663d0..5f4cbc2b23c18f20cccabff6ec83aa80fd58ca51 100644
(file)
--- 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,
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;