diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2008-12-21 09:58:05 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:39:43 -0500 |
commit | 97a53a0fd4d877b1c83cf03db1d2a18583a281db (patch) | |
tree | 03801fc949d621b24064878c2e697946f46e0ffd /drivers/media/video/gspca/t613.c | |
parent | 87945895bf14b0b4dacbcef6dc08f284177affc8 (diff) |
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>
Diffstat (limited to 'drivers/media/video/gspca/t613.c')
-rw-r--r-- | drivers/media/video/gspca/t613.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c index eac245d7a756..42126b549971 100644 --- a/drivers/media/video/gspca/t613.c +++ b/drivers/media/video/gspca/t613.c | |||
@@ -499,7 +499,7 @@ static void om6802_sensor_init(struct gspca_dev *gspca_dev) | |||
499 | reg_w_buf(gspca_dev, sensor_reset, sizeof sensor_reset); | 499 | reg_w_buf(gspca_dev, sensor_reset, sizeof sensor_reset); |
500 | msleep(5); | 500 | msleep(5); |
501 | i = 4; | 501 | i = 4; |
502 | while (--i < 0) { | 502 | while (--i > 0) { |
503 | byte = reg_r(gspca_dev, 0x0060); | 503 | byte = reg_r(gspca_dev, 0x0060); |
504 | if (!(byte & 0x01)) | 504 | if (!(byte & 0x01)) |
505 | break; | 505 | break; |