From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752856AbdK3Pe0 (ORCPT ); Thu, 30 Nov 2017 10:34:26 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:36147 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751852AbdK3PeZ (ORCPT ); Thu, 30 Nov 2017 10:34:25 -0500 Date: Thu, 30 Nov 2017 16:34:23 +0100 From: Maxime Ripard To: Vasyl Gomonovych Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Emilio =?iso-8859-1?Q?L=F3pez?= , Michael Turquette , Stephen Boyd , Chen-Yu Tsai , linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: sunxi: Use PTR_ERR_OR_ZERO() Message-ID: <20171130153423.5m5qwav3yhovaify@flea.lan> References: <1511972143-16028-1-git-send-email-gomonovych@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cwirfpa2zxdibden" Content-Disposition: inline In-Reply-To: <1511972143-16028-1-git-send-email-gomonovych@gmail.com> User-Agent: NeoMutt/20171027 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cwirfpa2zxdibden Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR >=20 > Generated by: scripts/coccinelle/api/ptr_ret.cocci >=20 > Signed-off-by: Vasyl Gomonovych Applied, thanks! Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com --cwirfpa2zxdibden Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlogJPsACgkQ0rTAlCFN r3SLPxAAmLLyVbti9yCSBLR86Gq50+hVy/VxZoLBh1/7BTzJefK6VTnMno+x4R40 k/CSQIQHDNy2TbB5kC/Hth4MlVfXAZ+/qCVsCVrjPZG5p3+9NcDG2qi2mCp46g4x qFiU1giBoabsYoiTJupBbohl0xuk6FkXrQubJ6/u8/wjHD/pu6uCIqjrhNSxaWwL 6eRr/GyPMCpAvQC64Fmoc//3PC/EOIuWnz+dLMArLVG8Ac+WiHylLgAlCOWGLYWk TBXsiEDVTr36WbKs5DMamCPV2sfiu39iu8+Z8ShUKXFbxdMoGE2mdqwtty7yJPhi 6pir0YYAPJT93ol+jmO52XekwxbsdnBxGLd/BSKUvc238eloOE5VApRMRdauQVFi GCUEgIRTdx+PtkM0mVeeaGl0G5vXhYri2F/Oiqh/bYb/T1/1r2jZeAK8Iqu3voHj TxKgOVuCjQtNmn9WuJ1C4GSu3/987QT+oH/EMdY2QKyN1a/itYe86UvHKVrxWrz5 VyMeuZ52OphB2Yt3qI8cp0Iqr7q7/RhkfzsagHFr4gRuSUQunoOswMgeUHK/en5W 8Rwfj1+Qk0PIHTulXJJL8Y92L3QPlCT9d9jWYNnVGsvo9dt/CMiiw7/NqkBp2G12 pZBo3L6Qn14z7fTw7ahIlfCxBTr9R3uzr4rhdEzB6eQb+aVZB7M= =TpoK -----END PGP SIGNATURE----- --cwirfpa2zxdibden--