projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caa2a77
)
drm/malidp: plane_state->fb iff plane_state->crtc
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 13 Dec 2019 17:26:04 +0000
(18:26 +0100)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Tue, 17 Dec 2019 16:26:08 +0000
(17:26 +0100)
Checking both is one too much, so wrap a WARN_ON around it to stope
the copypasta.
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Daniel 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
drivers/gpu/drm/arm/malidp_planes.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/arm/malidp_planes.c
b/drivers/gpu/drm/arm/malidp_planes.c
index 3c70a53813bf2e9e2626c9c0e850392ef9e63cbc..37715cc6064e68805617eb6401f704cde7f07eb5 100644
(file)
--- a/
drivers/gpu/drm/arm/malidp_planes.c
+++ b/
drivers/gpu/drm/arm/malidp_planes.c
@@
-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;