From: Thomas Zimmermann Date: Thu, 9 Feb 2023 15:41:04 +0000 (+0100) Subject: drm/mgag200: Remove disable handling from atomic_update X-Git-Tag: v6.4-rc1~31^2~30^2~45 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b712b3830a327b171f0a00512aee5e84d45f6d36;p=tomoyo%2Ftomoyo-test1.git drm/mgag200: Remove disable handling from atomic_update The primary plane has the atomic_disable helper set, so atomic_update won't be called if the plane gets disabled. Remove the respective branch from the helper. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas Link: https://patchwork.freedesktop.org/patch/msgid/20230209154107.30680-4-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c index 0a5aaf78172a..47e86eadb239 100644 --- a/drivers/gpu/drm/mgag200/mgag200_mode.c +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c @@ -503,9 +503,6 @@ void mgag200_primary_plane_helper_atomic_update(struct drm_plane *plane, struct drm_rect damage; u8 seq1; - if (!fb) - return; - drm_atomic_helper_damage_iter_init(&iter, old_plane_state, plane_state); drm_atomic_for_each_plane_damage(&iter, &damage) { mgag200_handle_damage(mdev, shadow_plane_state->data, fb, &damage);