From: Guoqing Jiang Date: Fri, 6 Dec 2024 11:45:31 +0000 (+0800) Subject: drm/exynos: Remove unnecessary checking X-Git-Tag: v6.15-rc4~10^2~1^2~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=cfa00a625f1c730e93f96b5b4ba7c1b4dc286c79;p=linux-block.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 = {