firmware-utils: bump to git HEAD
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0288-drm-vc4-Remove-unused-mode-variable.patch
1 From 71402ae2a97b18f0c03b763a2e1e2800f360d50a Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Thu, 25 Jul 2019 17:34:29 +0100
4 Subject: [PATCH] drm/vc4: Remove unused mode variable
5
6 "89d1376 drm/vc4: Add support for margins to fkms" removed
7 the requirement for having the mode structure from vc4_plane_to_mb,
8 but didn't remove it as a local to the function, causing a
9 compiler warning.
10
11 Remove the unused variable.
12
13 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
14 ---
15 drivers/gpu/drm/vc4/vc4_firmware_kms.c | 1 -
16 1 file changed, 1 deletion(-)
17
18 --- a/drivers/gpu/drm/vc4/vc4_firmware_kms.c
19 +++ b/drivers/gpu/drm/vc4/vc4_firmware_kms.c
20 @@ -525,7 +525,6 @@ static int vc4_plane_to_mb(struct drm_pl
21 const struct vc_image_format *vc_fmt =
22 vc4_get_vc_image_fmt(drm_fmt->format);
23 int num_planes = fb->format->num_planes;
24 - struct drm_display_mode *mode = &state->crtc->mode;
25 unsigned int rotation = SUPPORTED_ROTATIONS;
26
27 mb->plane.vc_image_type = vc_fmt->vc_image;