Commit c03c17c1 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Liviu Dudau

drm: mali-dp: remove unused variable

The newly introduced function causes a harmless build warning:

drivers/gpu/drm/arm/malidp_planes.c: In function 'malidp_plane_atomic_print_state':
drivers/gpu/drm/arm/malidp_planes.c:98:23: error: unused variable 'mp' [-Werror=unused-variable]

The variable serves no purpose here and can be removed.

Fixes: 242f43b69c61 ("drm: mali-dp: add atomic_print_state for planes")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
parent 88d4d90f
...@@ -95,7 +95,6 @@ static void malidp_plane_atomic_print_state(struct drm_printer *p, ...@@ -95,7 +95,6 @@ static void malidp_plane_atomic_print_state(struct drm_printer *p,
const struct drm_plane_state *state) const struct drm_plane_state *state)
{ {
struct malidp_plane_state *ms = to_malidp_plane_state(state); struct malidp_plane_state *ms = to_malidp_plane_state(state);
struct malidp_plane *mp = to_malidp_plane(state->plane);
drm_printf(p, "\trotmem_size=%u\n", ms->rotmem_size); drm_printf(p, "\trotmem_size=%u\n", ms->rotmem_size);
drm_printf(p, "\tformat_id=%u\n", ms->format); drm_printf(p, "\tformat_id=%u\n", ms->format);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment