Message ID | 20241206114531.1271123-1-guoqing.jiang@canonical.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/exynos: Remove unnecessary checking | expand |
Hi, 2024년 12월 6일 (금) 오후 8:45, Guoqing Jiang <guoqing.jiang@canonical.com>님이 작성: > > It is not needed since drm_atomic_helper_shutdown checks it. Correct. Merged. Thanks, Inki Dae > > Signed-off-by: Guoqing Jiang <guoqing.jiang@canonical.com> > --- > drivers/gpu/drm/exynos/exynos_drm_drv.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c > index 2a466d8179f4..461384705cf9 100644 > --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c > +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c > @@ -357,8 +357,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 = { > -- > 2.35.3 > >
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 2a466d8179f4..461384705cf9 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -357,8 +357,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 = {
It is not needed since drm_atomic_helper_shutdown checks it. Signed-off-by: Guoqing Jiang <guoqing.jiang@canonical.com> --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)