summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-12-18 12:22:43 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-01-17 11:31:36 -0200
commitc60503c1db76bd46577cc7ff4fafa033b675e0e5 (patch)
treefb05a6e52f8af67481fc391c49f022651398199b /drivers
parent882ead325b167cdab89f58f871dabf9de5ac87a4 (diff)
downloadblackbird-op-linux-c60503c1db76bd46577cc7ff4fafa033b675e0e5.tar.gz
blackbird-op-linux-c60503c1db76bd46577cc7ff4fafa033b675e0e5.zip
V4L/DVB (13868): gspca - sn9c20x: Fix test of unsigned.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> CC: stable@kernel.org Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/gspca/sn9c20x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/sn9c20x.c b/drivers/media/video/gspca/sn9c20x.c
index 4cff8035614f..0ca1c06652b1 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);
}
OpenPOWER on IntegriCloud