Skip to content

Commit aa4f227

Browse files
anholtgregkh
authored andcommitted
staging: bcm2835: Remove dead code related to framerate.
Fixes a compiler warning about a set-but-not-used variable. I think this was just leftover dead code from before set_framerate_params(), since that also sets up some mmal_parameter_rational structs for fps. Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 40b73e1 commit aa4f227

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,6 @@ static int vidioc_s_parm(struct file *file, void *priv,
13971397
{
13981398
struct bm2835_mmal_dev *dev = video_drvdata(file);
13991399
struct v4l2_fract tpf;
1400-
struct mmal_parameter_rational fps_param;
14011400

14021401
if (parm->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
14031402
return -EINVAL;
@@ -1414,10 +1413,6 @@ static int vidioc_s_parm(struct file *file, void *priv,
14141413
parm->parm.capture.readbuffers = 1;
14151414
parm->parm.capture.capability = V4L2_CAP_TIMEPERFRAME;
14161415

1417-
fps_param.num = 0; /* Select variable fps, and then use
1418-
* FPS_RANGE to select the actual limits.
1419-
*/
1420-
fps_param.den = 1;
14211416
set_framerate_params(dev);
14221417

14231418
return 0;

0 commit comments

Comments
 (0)