Skip to content

Commit

Permalink
V4L/DVB (10629): tvp514x: try_count reaches 0, not -1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent e23b290 commit 320a464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/tvp514x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 320a464

Please sign in to comment.