Re: [PATCH] dma: MIC X100: Use PTR_ERR_OR_ZERO()
From: Vinod Koul
Date: Mon Dec 04 2017 - 12:08:17 EST
On Tue, Nov 28, 2017 at 12:07:08AM +0100, Vasyl Gomonovych wrote:
> Fix ptr_ret.cocci warnings:
> drivers/dma/mic_x100_dma.c:483:1-3: 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
Applied after fixing subystem name and driver tag
--
~Vinod