[PATCH] drm: simplify the return expression of ast_drm_resume()
Thomas Zimmermann
tzimmermann at suse.de
Thu May 5 07:32:35 UTC 2022
Hi
Am 05.05.22 um 04:22 schrieb cgel.zte at gmail.com:
> From: Minghao Chi <chi.minghao at zte.com.cn>
>
> Simplify the return expression.
>
> Reported-by: Zeal Robot <zealci at zte.com.cn>
> Signed-off-by: Minghao Chi <chi.minghao at zte.com.cn>
Thanks a lot. I added your patch to drm-misc-next.
Best regards
Thomas
> ---
> drivers/gpu/drm/ast/ast_drv.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/ast/ast_drv.c b/drivers/gpu/drm/ast/ast_drv.c
> index 7465c4f0156a..760b27971557 100644
> --- a/drivers/gpu/drm/ast/ast_drv.c
> +++ b/drivers/gpu/drm/ast/ast_drv.c
> @@ -159,15 +159,10 @@ static int ast_drm_thaw(struct drm_device *dev)
>
> static int ast_drm_resume(struct drm_device *dev)
> {
> - int ret;
> -
> if (pci_enable_device(to_pci_dev(dev->dev)))
> return -EIO;
>
> - ret = ast_drm_thaw(dev);
> - if (ret)
> - return ret;
> - return 0;
> + return ast_drm_thaw(dev);
> }
>
> static int ast_pm_suspend(struct device *dev)
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220505/d48203f2/attachment.sig>
More information about the dri-devel
mailing list