Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bbe1e0ba527a18e1ddda2eabb9da369e5bcf556e
Commit:     bbe1e0ba527a18e1ddda2eabb9da369e5bcf556e
Parent:     98ae127cae56b99f2282d73399e0e1ca7dc13bc9
Author:     Michael Krufky <[EMAIL PROTECTED]>
AuthorDate: Mon Nov 5 09:54:42 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:02:02 2008 -0200

    V4L/DVB (6563): tda8290: optimize for loop in tda829x_probe function
    
    Thanks to Trent Piepho for pointing this out.
    
    Signed-off-by: Michael Krufky <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/tda8290.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/media/video/tda8290.c b/drivers/media/video/tda8290.c
index a849ded..c606f3c 100644
--- a/drivers/media/video/tda8290.c
+++ b/drivers/media/video/tda8290.c
@@ -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 */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to