V4L/DVB (9994): gspca: t613: Bad loop in om6802 reset.
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 21 Dec 2008 14:58:05 +0000 (11:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:43 +0000 (09:39 -0200)
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/t613.c

index eac245d..42126b5 100644 (file)
@@ -499,7 +499,7 @@ static void om6802_sensor_init(struct gspca_dev *gspca_dev)
        reg_w_buf(gspca_dev, sensor_reset, sizeof sensor_reset);
        msleep(5);
        i = 4;
-       while (--i < 0) {
+       while (--i > 0) {
                byte = reg_r(gspca_dev, 0x0060);
                if (!(byte & 0x01))
                        break;