diff options
author | Jean-François Moine <moinejf@free.fr> | 2011-05-17 02:54:11 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-21 08:30:18 -0400 |
commit | cc90b15eb27696a5fa237897deb2fc83a1e003f1 (patch) | |
tree | d07c29ef00ccd21e8738b42273ca6a6e948026f9 /drivers | |
parent | 81f2030a935734ff404c86ad85f1eab777eb2324 (diff) |
[media] gspca - cpia1: Fix some warnings
Some variables were set but not used.
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/gspca/cpia1.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/cpia1.c b/drivers/media/video/gspca/cpia1.c index 9ddbac680663..7e08354165c4 100644 --- a/drivers/media/video/gspca/cpia1.c +++ b/drivers/media/video/gspca/cpia1.c | |||
@@ -1262,7 +1262,7 @@ static int set_flicker(struct gspca_dev *gspca_dev, int on, int apply) | |||
1262 | static void monitor_exposure(struct gspca_dev *gspca_dev) | 1262 | static void monitor_exposure(struct gspca_dev *gspca_dev) |
1263 | { | 1263 | { |
1264 | struct sd *sd = (struct sd *) gspca_dev; | 1264 | struct sd *sd = (struct sd *) gspca_dev; |
1265 | u8 exp_acc, bcomp, gain, coarseL, cmd[8]; | 1265 | u8 exp_acc, bcomp, cmd[8]; |
1266 | int ret, light_exp, dark_exp, very_dark_exp; | 1266 | int ret, light_exp, dark_exp, very_dark_exp; |
1267 | int old_exposure, new_exposure, framerate; | 1267 | int old_exposure, new_exposure, framerate; |
1268 | int setfps = 0, setexp = 0, setflicker = 0; | 1268 | int setfps = 0, setexp = 0, setflicker = 0; |
@@ -1284,8 +1284,6 @@ static void monitor_exposure(struct gspca_dev *gspca_dev) | |||
1284 | } | 1284 | } |
1285 | exp_acc = gspca_dev->usb_buf[0]; | 1285 | exp_acc = gspca_dev->usb_buf[0]; |
1286 | bcomp = gspca_dev->usb_buf[1]; | 1286 | bcomp = gspca_dev->usb_buf[1]; |
1287 | gain = gspca_dev->usb_buf[2]; | ||
1288 | coarseL = gspca_dev->usb_buf[3]; | ||
1289 | 1287 | ||
1290 | light_exp = sd->params.colourParams.brightness + | 1288 | light_exp = sd->params.colourParams.brightness + |
1291 | TC - 50 + EXP_ACC_LIGHT; | 1289 | TC - 50 + EXP_ACC_LIGHT; |