From: Guoqing Jiang Date: Fri, 6 Dec 2024 11:45:31 +0000 (+0800) Subject: drm/exynos: Remove unnecessary checking X-Git-Tag: next-20250214~81^2 X-Git-Url: https://gentwo.org/gitweb/?a=commitdiff_plain;h=81a50378559bfbb76a26f574f13a58a441d43b77;p=linux%2F.git drm/exynos: Remove unnecessary checking It is not needed since drm_atomic_helper_shutdown checks it. Signed-off-by: Guoqing Jiang Signed-off-by: Inki Dae --- diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index f313ae7bc3a3..6cc7bf77bcac 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -355,8 +355,7 @@ static void exynos_drm_platform_shutdown(struct platform_device *pdev) { struct drm_device *drm = platform_get_drvdata(pdev); - if (drm) - drm_atomic_helper_shutdown(drm); + drm_atomic_helper_shutdown(drm); } static struct platform_driver exynos_drm_platform_driver = {