V4L/DVB: ov7670: silence some compiler warnings
authorJonathan Corbet <corbet@lwn.net>
Fri, 26 Mar 2010 16:09:34 +0000 (13:09 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:51:25 +0000 (00:51 -0300)
Get rid of some "unused variable" warnings.  These were the result of
sloppiness and should not have happened; I'll go stand in the corner now.

Reported-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ov7670.c

index 82d37d925eb437d17bde7c91682a52784647f29f..91c886ab15c6dad4d533e36c79fa766ca55face4 100644 (file)
@@ -874,8 +874,7 @@ static int ov7670_s_parm(struct v4l2_subdev *sd, struct v4l2_streamparm *parms)
        struct v4l2_captureparm *cp = &parms->parm.capture;
        struct v4l2_fract *tpf = &cp->timeperframe;
        struct ov7670_info *info = to_state(sd);
-       unsigned char clkrc;
-       int ret, div;
+       int div;
 
        if (parms->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
                return -EINVAL;
@@ -1281,9 +1280,9 @@ static int ov7670_g_autoexp(struct v4l2_subdev *sd, __s32 *value)
 
        ret = ov7670_read(sd, REG_COM8, &com8);
        if (com8 & COM8_AEC)
-               *value = V4L2_EXPOSURE_AUTO;
+               *atype = V4L2_EXPOSURE_AUTO;
        else
-               *value = V4L2_EXPOSURE_MANUAL;
+               *atype = V4L2_EXPOSURE_MANUAL;
        return ret;
 }