[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <81eeafd6-26b3-1414-19d4-032e186ef308@gmail.com>
Date: Wed, 24 Aug 2022 12:10:29 +0200
From: Matthias Brugger <matthias.bgg@...il.com>
To: cgel.zte@...il.com, chunkuang.hu@...nel.org
Cc: p.zabel@...gutronix.de, airlied@...ux.ie, daniel@...ll.ch,
linux-kernel@...r.kernel.org, ye xingchen <ye.xingchen@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH linux-next] drm/mediatek: Remove the unneeded result
variable
On 23/08/2022 09:55, cgel.zte@...il.com wrote:
> From: ye xingchen <ye.xingchen@....com.cn>
>
> Return the value drm_mode_config_helper_suspend() directly instead of
> storing it in another redundant variable.
>
> Reported-by: Zeal Robot <zealci@....com.cn>
> Signed-off-by: ye xingchen <ye.xingchen@....com.cn>
Reviewed-by: Matthias Brugger <matthias.bgg@...il.com>
Please make sure to add all the mailinglists that get_maintainers.pl gives you.
Regards,
Matthias
> ---
> drivers/gpu/drm/mediatek/mtk_drm_drv.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> index 5f02f8d0e4fc..91f58db5915f 100644
> --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> @@ -833,11 +833,8 @@ static int mtk_drm_sys_prepare(struct device *dev)
> {
> struct mtk_drm_private *private = dev_get_drvdata(dev);
> struct drm_device *drm = private->drm;
> - int ret;
> -
> - ret = drm_mode_config_helper_suspend(drm);
>
> - return ret;
> + return drm_mode_config_helper_suspend(drm);
> }
>
> static void mtk_drm_sys_complete(struct device *dev)
Powered by blists - more mailing lists