Skip to content

Commit cfa00a6

Browse files
gjiangcanonicaldaeinki
authored andcommitted
drm/exynos: Remove unnecessary checking
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>
1 parent 0467145 commit cfa00a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/exynos/exynos_drm_drv.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,7 @@ static void exynos_drm_platform_shutdown(struct platform_device *pdev)
355355
{
356356
struct drm_device *drm = platform_get_drvdata(pdev);
357357

358-
if (drm)
359-
drm_atomic_helper_shutdown(drm);
358+
drm_atomic_helper_shutdown(drm);
360359
}
361360

362361
static struct platform_driver exynos_drm_platform_driver = {

0 commit comments

Comments
 (0)