Commit 97a53a0f authored by Roel Kluin's avatar Roel Kluin Committed by Mauro Carvalho Chehab

V4L/DVB (9994): gspca: t613: Bad loop in om6802 reset.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 87945895
...@@ -499,7 +499,7 @@ static void om6802_sensor_init(struct gspca_dev *gspca_dev) ...@@ -499,7 +499,7 @@ static void om6802_sensor_init(struct gspca_dev *gspca_dev)
reg_w_buf(gspca_dev, sensor_reset, sizeof sensor_reset); reg_w_buf(gspca_dev, sensor_reset, sizeof sensor_reset);
msleep(5); msleep(5);
i = 4; i = 4;
while (--i < 0) { while (--i > 0) {
byte = reg_r(gspca_dev, 0x0060); byte = reg_r(gspca_dev, 0x0060);
if (!(byte & 0x01)) if (!(byte & 0x01))
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment