]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (6563): tda8290: optimize for loop in tda829x_probe function
authorMichael Krufky <mkrufky@linuxtv.org>
Mon, 5 Nov 2007 12:54:42 +0000 (09:54 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:02:02 +0000 (19:02 -0200)
Thanks to Trent Piepho for pointing this out.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tda8290.c

index a849ded0000da6748727c3569999e0320929f47f..c606f3c38cf41cd2d0eab8bdb06783f3a5c01c0d 100644 (file)
@@ -754,9 +754,8 @@ 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;
-               break;
+               if (buf[i] != buf[0])
+                       break;
        }
 
        /* all bytes are equal, not a tda829x - probably a tda9887 */