Re: [PATCH] ARM: davinci: Use PTR_ERR_OR_ZERO()
From: Sekhar Nori
Date: Wed Nov 29 2017 - 02:34:01 EST
On Tuesday 28 November 2017 04:33 AM, Vasyl Gomonovych wrote:
> Fix ptr_ret.cocci warnings:
> arch/arm/mach-davinci/devices-da8xx.c:255:8-14: WARNING: PTR_ERR_OR_ZERO can be used
> arch/arm/mach-davinci/devices-da8xx.c:300:8-14: WARNING: PTR_ERR_OR_ZERO can be used
> arch/arm/mach-davinci/dm646x.c:952:8-14: WARNING: PTR_ERR_OR_ZERO can be used
> Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
>
> Generated by: scripts/coccinelle/api/ptr_ret.cocci
>
> Signed-off-by: Vasyl Gomonovych <gomonovych@xxxxxxxxx>
Applied to v4.16/fixes-non-critical
Thanks,
Sekhar