[PATCH] drm/exynos: Remove unnecessary checking

Inki Dae daeinki at gmail.com
Wed Dec 11 18:31:08 PST 2024


Hi,

2024년 12월 6일 (금) 오후 8:45, Guoqing Jiang <guoqing.jiang at 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 at 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
>
>



More information about the linux-arm-kernel mailing list