Skip to content

Commit 77e63fd

Browse files
6by9popcornmix
authored andcommitted
drm/vc4: Remove unused mode variable
"89d1376 drm/vc4: Add support for margins to fkms" removed the requirement for having the mode structure from vc4_plane_to_mb, but didn't remove it as a local to the function, causing a compiler warning. Remove the unused variable. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
1 parent 2ff07e5 commit 77e63fd

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/gpu/drm/vc4/vc4_firmware_kms.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@ static int vc4_plane_to_mb(struct drm_plane *plane,
523523
const struct vc_image_format *vc_fmt =
524524
vc4_get_vc_image_fmt(drm_fmt->format);
525525
int num_planes = fb->format->num_planes;
526-
struct drm_display_mode *mode = &state->crtc->mode;
527526
unsigned int rotation = SUPPORTED_ROTATIONS;
528527

529528
mb->plane.vc_image_type = vc_fmt->vc_image;

0 commit comments

Comments
 (0)