Skip to content

Commit

Permalink
[media] soc_camera/ov2640: Don't use a temp var for an unused value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 28, 2012
1 parent 830e4b5 commit ba40089
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/media/i2c/soc_camera/ov2640.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ba40089

Please sign in to comment.