diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-12-21 15:58:05 +0100 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-12-21 15:58:05 +0100 |
commit | a48a5ef826d2948a3b2a17d024cf853f1ed3b931 (patch) | |
tree | 8b4e16151ba94f83abf538b38f703e27ad90ab63 /linux/drivers/media/video/gspca | |
parent | d67d42c6ccc985bb0edc5c416babf3e07e8161cc (diff) | |
download | mediapointer-dvb-s2-a48a5ef826d2948a3b2a17d024cf853f1ed3b931.tar.gz mediapointer-dvb-s2-a48a5ef826d2948a3b2a17d024cf853f1ed3b931.tar.bz2 |
gspca: t613: Bad loop in om6802 reset.
From: Roel Kluin <roel.kluin@gmail.com>
Priority: normal
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca')
-rw-r--r-- | linux/drivers/media/video/gspca/t613.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/t613.c b/linux/drivers/media/video/gspca/t613.c index d2d6ad9d1..452ca1d16 100644 --- a/linux/drivers/media/video/gspca/t613.c +++ b/linux/drivers/media/video/gspca/t613.c @@ -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; |