[PATCH] drm/tegra: Use PTR_ERR_OR_ZERO() to simplify code
Thierry Reding
thierry.reding at gmail.com
Fri Jan 15 16:23:06 UTC 2021
On Tue, Dec 15, 2020 at 03:00:53PM +0800, Tian Tao wrote:
> Fixes coccicheck warning:
> drivers/gpu/drm/tegra/drm.c:350:1-3: WARNING: PTR_ERR_OR_ZERO can be used
>
> Signed-off-by: Tian Tao <tiantao6 at hisilicon.com>
> ---
> drivers/gpu/drm/tegra/drm.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
This coccinelle patch was recently removed, so I won't pick this up.
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20210115/e051cb37/attachment.sig>
More information about the dri-devel
mailing list