[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2081575.ibfeOaj4ye@avalon>
Date: Wed, 12 Sep 2018 00:19:58 +0300
From: Laurent Pinchart <laurent.pinchart@...asonboard.com>
To: zhong jiang <zhongjiang@...wei.com>
Cc: airlied@...ux.ie, tomi.valkeinen@...com, sre@...nel.org,
afd@...com, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/omap: Use ERR_CAST directly instead of RR_PTR(PTR_ERR())
Hi Zhong Jiang,
Thank you for the patch.
On Tuesday, 11 September 2018 14:54:35 EEST zhong jiang wrote:
> We prefer to use ERR_CAST to do so.
> The issue is detected with the help of Coccinelle.
>
> Signed-off-by: zhong jiang <zhongjiang@...wei.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@...asonboard.com>
I expect Tomi to take this patch in his tree, but I also applied it to mine to
make sure it won't be forgotten.
> ---
> drivers/gpu/drm/omapdrm/dss/dss.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c
> b/drivers/gpu/drm/omapdrm/dss/dss.c index cb80dda..1fc46b2 100644
> --- a/drivers/gpu/drm/omapdrm/dss/dss.c
> +++ b/drivers/gpu/drm/omapdrm/dss/dss.c
> @@ -956,7 +956,7 @@ struct dss_debugfs_entry *
> &dss_debug_fops);
> if (IS_ERR(d)) {
> kfree(entry);
> - return ERR_PTR(PTR_ERR(d));
> + return ERR_CAST(d);
> }
>
> entry->dentry = d;
--
Regards,
Laurent Pinchart
Powered by blists - more mailing lists