V4L/DVB (9994): gspca: t613: Bad loop in om6802 reset.
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>
This commit is contained in:
parent
87945895bf
commit
97a53a0fd4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue