V4L/DVB (11961): tvp514x: try_count off by one
With `while (try_count-- > 0)' try_count reaches -1 after the loop. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
bcd3e4b319
commit
76b0811645
1 changed files with 1 additions and 1 deletions
|
@ -692,7 +692,7 @@ static int ioctl_s_routing(struct v4l2_int_device *s,
|
||||||
break; /* Input detected */
|
break; /* Input detected */
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((current_std == STD_INVALID) || (try_count <= 0))
|
if ((current_std == STD_INVALID) || (try_count < 0))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
decoder->current_std = current_std;
|
decoder->current_std = current_std;
|
||||||
|
|
Loading…
Add table
Reference in a new issue