[PATCH] ARM: davinci: Use PTR_ERR_OR_ZERO()
Sekhar Nori
nsekhar at ti.com
Tue Nov 28 23:32:17 PST 2017
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 at gmail.com>
Applied to v4.16/fixes-non-critical
Thanks,
Sekhar
More information about the linux-arm-kernel
mailing list