[media] soc_camera/ov2640: Don't use a temp var for an unused value
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 19:16:34 +0000 (16:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 28 Oct 2012 09:38:45 +0000 (07:38 -0200)
drivers/media/i2c/soc_camera/ov2640.c:899:32: warning: variable 'win' set but not used [-Wunused-but-set-variable]

Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/soc_camera/ov2640.c

index d2d298b6354e8038d95076fdc6a9bd8a68f256d4..30cf6d8b7b8b79df9e0284680252bce2c6b0e0da 100644 (file)
@@ -896,12 +896,10 @@ static int ov2640_s_fmt(struct v4l2_subdev *sd,
 static int ov2640_try_fmt(struct v4l2_subdev *sd,
                          struct v4l2_mbus_framefmt *mf)
 {
-       const struct ov2640_win_size *win;
-
        /*
-        * select suitable win
+        * select suitable win, but don't store it
         */
-       win = ov2640_select_win(&mf->width, &mf->height);
+       ov2640_select_win(&mf->width, &mf->height);
 
        mf->field       = V4L2_FIELD_NONE;