projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
882ead3
)
V4L/DVB (13868): gspca - sn9c20x: Fix test of unsigned.
author
Roel Kluin
<roel.kluin@gmail.com>
Fri, 18 Dec 2009 15:22:43 +0000
(12:22 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sun, 17 Jan 2010 13:31:36 +0000
(11:31 -0200)
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>
drivers/media/video/gspca/sn9c20x.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/gspca/sn9c20x.c
b/drivers/media/video/gspca/sn9c20x.c
index
4cff803
..
0ca1c06
100644
(file)
--- 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);
}