aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.14/950-0378-staging-bcm2835-Remove-dead-code-related-to-framerat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/brcm2708/patches-4.14/950-0378-staging-bcm2835-Remove-dead-code-related-to-framerat.patch')
-rw-r--r--target/linux/brcm2708/patches-4.14/950-0378-staging-bcm2835-Remove-dead-code-related-to-framerat.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.14/950-0378-staging-bcm2835-Remove-dead-code-related-to-framerat.patch b/target/linux/brcm2708/patches-4.14/950-0378-staging-bcm2835-Remove-dead-code-related-to-framerat.patch
new file mode 100644
index 0000000000..7fcfdc8668
--- /dev/null
+++ b/target/linux/brcm2708/patches-4.14/950-0378-staging-bcm2835-Remove-dead-code-related-to-framerat.patch
@@ -0,0 +1,39 @@
+From 6ad3bd1cb169213a3dfab84e2221ff40bb7a08f8 Mon Sep 17 00:00:00 2001
+From: Eric Anholt <eric@anholt.net>
+Date: Thu, 10 May 2018 12:42:19 -0700
+Subject: [PATCH 378/454] staging: bcm2835: Remove dead code related to
+ framerate.
+
+commit aa4f227112dc8d6caf73f494deb4bbd5ecc6eec4 upstream.
+
+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>
+---
+ .../staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 5 -----
+ 1 file changed, 5 deletions(-)
+
+--- a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
++++ b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
+@@ -1430,7 +1430,6 @@ static int vidioc_s_parm(struct file *fi
+ {
+ struct bm2835_mmal_dev *dev = video_drvdata(file);
+ struct v4l2_fract tpf;
+- struct mmal_parameter_rational fps_param;
+
+ if (parm->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
+ return -EINVAL;
+@@ -1447,10 +1446,6 @@ static int vidioc_s_parm(struct file *fi
+ parm->parm.capture.readbuffers = 1;
+ parm->parm.capture.capability = V4L2_CAP_TIMEPERFRAME;
+
+- fps_param.num = 0; /* Select variable fps, and then use
+- * FPS_RANGE to select the actual limits.
+- */
+- fps_param.den = 1;
+ set_framerate_params(dev);
+
+ return 0;