Skip to content

Commit

Permalink
[media] gspca - cpia1: Fix some warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed May 21, 2011
1 parent 81f2030 commit cc90b15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/media/video/gspca/cpia1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ static int set_flicker(struct gspca_dev *gspca_dev, int on, int apply)
static void monitor_exposure(struct gspca_dev *gspca_dev)
{
struct sd *sd = (struct sd *) gspca_dev;
u8 exp_acc, bcomp, gain, coarseL, cmd[8];
u8 exp_acc, bcomp, cmd[8];
int ret, light_exp, dark_exp, very_dark_exp;
int old_exposure, new_exposure, framerate;
int setfps = 0, setexp = 0, setflicker = 0;
Expand All @@ -1284,8 +1284,6 @@ static void monitor_exposure(struct gspca_dev *gspca_dev)
}
exp_acc = gspca_dev->usb_buf[0];
bcomp = gspca_dev->usb_buf[1];
gain = gspca_dev->usb_buf[2];
coarseL = gspca_dev->usb_buf[3];

light_exp = sd->params.colourParams.brightness +
TC - 50 + EXP_ACC_LIGHT;
Expand Down

0 comments on commit cc90b15

Please sign in to comment.