From: maxime.ripard@free-electrons.com (Maxime Ripard) Date: Thu, 30 Nov 2017 16:34:23 +0100 Subject: [PATCH] clk: sunxi: Use PTR_ERR_OR_ZERO() In-Reply-To: <1511972143-16028-1-git-send-email-gomonovych@gmail.com> References: <1511972143-16028-1-git-send-email-gomonovych@gmail.com> Message-ID: <20171130153423.5m5qwav3yhovaify@flea.lan> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Nov 29, 2017 at 05:15:43PM +0100, Vasyl Gomonovych wrote: > Fix ptr_ret.cocci warnings: > drivers/clk/sunxi/clk-sun8i-apb0.c:101: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 > > Signed-off-by: Vasyl Gomonovych Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: