summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 16:16:34 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-28 07:38:45 -0200
commitba4008921ba8144ff307f10d04fe52e6d6e744dc (patch)
tree91c38787e8bc182f9dfa3174e8dad73b16c12eeb /drivers
parent830e4b55b02b8a2638958e4249eba71797940ee5 (diff)
downloadlinux-stable-ba4008921ba8144ff307f10d04fe52e6d6e744dc.tar.gz
linux-stable-ba4008921ba8144ff307f10d04fe52e6d6e744dc.tar.bz2
linux-stable-ba4008921ba8144ff307f10d04fe52e6d6e744dc.zip
[media] soc_camera/ov2640: Don't use a temp var for an unused value
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/i2c/soc_camera/ov2640.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/i2c/soc_camera/ov2640.c b/drivers/media/i2c/soc_camera/ov2640.c
index d2d298b6354e..30cf6d8b7b8b 100644
--- a/drivers/media/i2c/soc_camera/ov2640.c
+++ b/drivers/media/i2c/soc_camera/ov2640.c
@@ -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;