drm/exynos: Remove unnecessary checking
authorGuoqing Jiang <guoqing.jiang@canonical.com>
Fri, 6 Dec 2024 11:45:31 +0000 (19:45 +0800)
committerInki Dae <inki.dae@samsung.com>
Wed, 23 Apr 2025 13:52:58 +0000 (22:52 +0900)
It is not needed since drm_atomic_helper_shutdown checks it.

Signed-off-by: Guoqing Jiang <guoqing.jiang@canonical.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c

index f313ae7bc3a3232a1632cc6ea282613422f60d58..6cc7bf77bcacc6ddb2983b4f9a5d0354ee1d3f8d 100644 (file)
@@ -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 = {