diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-12-18 12:22:43 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-01-22 15:18:22 -0800 |
commit | 56a7f72d020e86c33b3c829c9a89d33f8c359305 (patch) | |
tree | be61de0bf94f2b91add9b7e33aaae842e5788954 | |
parent | fe52cee99c5cf51c38c4d150fbc8a84fb8ed97d6 (diff) |
V4L/DVB (13868): gspca - sn9c20x: Fix test of unsigned.
commit c60503c1db76bd46577cc7ff4fafa033b675e0e5 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/media/video/gspca/sn9c20x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/sn9c20x.c b/drivers/media/video/gspca/sn9c20x.c index cdad3db3336..e0a3b759a4c 100644 --- a/drivers/media/video/gspca/sn9c20x.c +++ b/drivers/media/video/gspca/sn9c20x.c @@ -2319,7 +2319,7 @@ static void do_autogain(struct gspca_dev *gspca_dev, u16 avg_lum) } } if (avg_lum > MAX_AVG_LUM) { - if (sd->gain - 1 >= 0) { + if (sd->gain >= 1) { sd->gain--; set_gain(gspca_dev); } |