Skip to content
Snippets Groups Projects
Commit e529878e authored by Simona Vetter's avatar Simona Vetter
Browse files

drm/malidp: plane_state->fb iff plane_state->crtc


Checking both is one too much, so wrap a WARN_ON around it to stope
the copypasta.

Acked-by: default avatarLiviu Dudau <liviu.dudau@arm.com>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Brian Starkey <brian.starkey@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191213172612.1514842-2-daniel.vetter@ffwll.ch
parent caa2a778
No related branches found
No related tags found
No related merge requests found
......@@ -512,7 +512,7 @@ static int malidp_de_plane_check(struct drm_plane *plane,
int i, ret;
unsigned int block_w, block_h;
if (!state->crtc || !state->fb)
if (!state->crtc || WARN_ON(!state->fb))
return 0;
fb = state->fb;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment