e12cac2c85e586d6fa9043a5cf70190cfb59af02
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0656-drm-vc4-Remove-unused-mode-variable.patch
1 From b2f463facb358b917380683b5e86c5d1cb3db123 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 @@ -523,7 +523,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;