diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2022-09-22 15:09:42 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2022-09-27 10:26:37 +0200 |
commit | 7fcf19301ef745adfa9fa1baa7b829c77dec5e22 (patch) | |
tree | 7d9367b89295c8aec972417f2c3c16605fff5766 /drivers/gpu/drm/tiny | |
parent | drm/simpledrm: Use drm_atomic_get_new_plane_state() (diff) | |
download | linux-7fcf19301ef745adfa9fa1baa7b829c77dec5e22.tar.xz linux-7fcf19301ef745adfa9fa1baa7b829c77dec5e22.zip |
drm/simpledrm: Remove !fb check from atomic_update
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@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220922130944.27138-4-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/tiny')
-rw-r--r-- | drivers/gpu/drm/tiny/simpledrm.c | 3 |
1 files changed, 0 insertions, 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; |