[PATCH 3/5] drm/simpledrm: Remove !fb check from atomic_update
Thomas Zimmermann
tzimmermann at suse.de
Thu Sep 22 13:09:42 UTC 2022
The primary plane implements atomic_disable, so atomic_update will
not be called without a framebuffer set. Remove the test for !fb.
Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
---
drivers/gpu/drm/tiny/simpledrm.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/tiny/simpledrm.c b/drivers/gpu/drm/tiny/simpledrm.c
index 14782a50f816..8fab22a26e26 100644
--- a/drivers/gpu/drm/tiny/simpledrm.c
+++ b/drivers/gpu/drm/tiny/simpledrm.c
@@ -482,9 +482,6 @@ static void simpledrm_primary_plane_helper_atomic_update(struct drm_plane *plane
struct drm_rect src_clip, dst_clip;
int idx;
- if (!fb)
- return;
-
if (!drm_atomic_helper_damage_merged(old_plane_state, plane_state, &src_clip))
return;
--
2.37.3
More information about the dri-devel
mailing list