[PATCH] drm/rockchip: Remove unnecessary checking
Andy Yan
andyshrk at 163.com
Fri Dec 6 04:08:47 PST 2024
Hi Guoqing,
At 2024-12-06 19:42:33, "Guoqing Jiang" <guoqing.jiang at canonical.com> wrote:
>It is not needed since drm_atomic_helper_shutdown checks it.
>
>Signed-off-by: Guoqing Jiang <guoqing.jiang at canonical.com>
Acked-by: Andy Yan<andyshrk at 163.com>
Thanks
>---
> drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
>diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
>index 585355de696b..64f5f547fb7a 100644
>--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
>+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
>@@ -488,8 +488,7 @@ static void rockchip_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 const struct of_device_id rockchip_drm_dt_ids[] = {
>--
>2.35.3
>
>
>_______________________________________________
>Linux-rockchip mailing list
>Linux-rockchip at lists.infradead.org
>http://lists.infradead.org/mailman/listinfo/linux-rockchip
More information about the Linux-rockchip
mailing list