* [PATCH] tvp514x: try_count off by one.
@ 2009-06-04 12:28 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-06-04 12:28 UTC (permalink / raw)
To: mchehab; +Cc: linux-media, Andrew Morton
with `while (try_count-- > 0)' try_count reaches -1 after the loop.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/media/video/tvp514x.c b/drivers/media/video/tvp514x.c
index 4262e60..3750f7f 100644
--- a/drivers/media/video/tvp514x.c
+++ b/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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-04 10:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-04 12:28 [PATCH] tvp514x: try_count off by one Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox