1 From 6ad3bd1cb169213a3dfab84e2221ff40bb7a08f8 Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Thu, 10 May 2018 12:42:19 -0700
4 Subject: [PATCH 378/454] staging: bcm2835: Remove dead code related to
7 commit aa4f227112dc8d6caf73f494deb4bbd5ecc6eec4 upstream.
9 Fixes a compiler warning about a set-but-not-used variable. I think
10 this was just leftover dead code from before set_framerate_params(),
11 since that also sets up some mmal_parameter_rational structs for fps.
13 Signed-off-by: Eric Anholt <eric@anholt.net>
14 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 .../staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 5 -----
17 1 file changed, 5 deletions(-)
19 --- a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
20 +++ b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
21 @@ -1430,7 +1430,6 @@ static int vidioc_s_parm(struct file *fi
23 struct bm2835_mmal_dev *dev = video_drvdata(file);
24 struct v4l2_fract tpf;
25 - struct mmal_parameter_rational fps_param;
27 if (parm->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
29 @@ -1447,10 +1446,6 @@ static int vidioc_s_parm(struct file *fi
30 parm->parm.capture.readbuffers = 1;
31 parm->parm.capture.capability = V4L2_CAP_TIMEPERFRAME;
33 - fps_param.num = 0; /* Select variable fps, and then use
34 - * FPS_RANGE to select the actual limits.
37 set_framerate_params(dev);