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

Commit bbe1e0ba authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (6563): tda8290: optimize for loop in tda829x_probe function



Thanks to Trent Piepho for pointing this out.

Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 98ae127c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -754,8 +754,7 @@ int tda829x_probe(struct tuner *t)
	tuner_i2c_xfer_send(&i2c_props, soft_reset, 1);
	tuner_i2c_xfer_recv(&i2c_props, buf, PROBE_BUFFER_SIZE);
	for (i = 1; i < PROBE_BUFFER_SIZE; i++) {
		if (buf[i] == buf[0])
			continue;
		if (buf[i] != buf[0])
			break;
	}