Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 320a4648 authored by Roel Kluin's avatar Roel Kluin Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (10629): tvp514x: try_count reaches 0, not -1



with while (try_count-- > 0) { ... } try_count reaches 0, not -1.

Cc: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e23b2907
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;