Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp538574imm; Tue, 9 Oct 2018 23:44:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV60VI5d9SG1ovTukQT+i4Tzl6tpUHmoFoIiHVjyOuOxtvcEG2myVREytZmZTuJNIp0W/s2d/ X-Received: by 2002:a17:902:3fa5:: with SMTP id a34-v6mr32126366pld.244.1539153881992; Tue, 09 Oct 2018 23:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539153881; cv=none; d=google.com; s=arc-20160816; b=gdJijbLsq0obZ7gH4BOO6zxPmtigmvbEqwARUemI/KlTuOQfhK6B0K+L3RawwRUrQZ 7uLDDvwHkVdjeaYQ8Vs30kmU5FpXfNFD3yKEed/nvHm8K1aATnyHwUCduVg3oNZVcBz9 GRCO0DOocQycd8ZvBIQMaJfjTspSjGmVL7YLEPxcbDvZP2ahhm/sF0fEQcho6ADwOMDM e2lgO+zvJZ3zvJ20HujIzy0c0wMfwshPLDKC8M/HvzwjGEgSrLUUE6R9Nhy0vchMoBbn NeYSCN8ndow8qwtud1WdGpytrqpiyQFXQG4+qgTUbX873ffb0sUP508JMA7DGNJqzN3Y 8sMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=zf3SqoPpNcFQmQp+6awKd5qwjbCd4jaHOR2zSF41dIc=; b=JNq164m2FI0u5FELzCizy+mg5Mn21/ziCl7QlUNrLzfLL2JXOp6UaN/kYyIBEmYTuM 4Y6UrPgcoPAccP+hGXXdNClHLTc0iFcKK46YE5vCGmx1PZZaKkSoDT6U/OF8kHoaDVtj IGUF60ifeWChoHQR5zjTogTn88RRTcJRha4L6uvNF57jimvvEsmv12UXebiOF3RFBAFn eKFkzadswrQbd+Cc/86syvvyE0BRRot5hnwv3ccGthDkgdZxblkYUMeo20xyDxEqLZiv ZnCBifG9T+0U6rlnFuZWu18kFaKVgBOgb/Liq5sCISx8xjOx48rDv6mu0Nt5NxcJTEAJ VSVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m61-v6si23222160plb.300.2018.10.09.23.44.26; Tue, 09 Oct 2018 23:44:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726562AbeJJOEq (ORCPT + 99 others); Wed, 10 Oct 2018 10:04:46 -0400 Received: from mail.bootlin.com ([62.4.15.54]:41763 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725791AbeJJOEp (ORCPT ); Wed, 10 Oct 2018 10:04:45 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 1B7DE20787; Wed, 10 Oct 2018 08:44:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from qschulz (AAubervilliers-681-1-28-153.w90-88.abo.wanadoo.fr [90.88.148.153]) by mail.bootlin.com (Postfix) with ESMTPSA id D1C7120726; Wed, 10 Oct 2018 08:43:51 +0200 (CEST) Date: Wed, 10 Oct 2018 08:43:51 +0200 From: Quentin Schulz To: Wei Yongjun Cc: Kishon Vijay Abraham I , "David S. Miller" , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH -next] phy: phy-ocelot-serdes: fix return value check in serdes_probe() Message-ID: <20181010064351.lsntlt45ujhms7ge@qschulz> References: <1539136824-44940-1-git-send-email-weiyongjun1@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uqmvk2lc7u5vyulk" Content-Disposition: inline In-Reply-To: <1539136824-44940-1-git-send-email-weiyongjun1@huawei.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --uqmvk2lc7u5vyulk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Wei Yongjun, On Wed, Oct 10, 2018 at 02:00:24AM +0000, Wei Yongjun wrote: > In case of error, the function syscon_node_to_regmap() returns ERR_PTR() > and never returns NULL. The NULL test in the return value check should > be replaced with IS_ERR(). >=20 > Fixes: 51f6b410fc22 ("phy: add driver for Microsemi Ocelot SerDes muxing") Reviewed-by: Quentin Schulz Thanks! Quentin --uqmvk2lc7u5vyulk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEXeEYjDsJh38OoyMzhLiadT7g8aMFAlu9n6YACgkQhLiadT7g 8aPOwBAAlgPT4wvAX8gVnmzktWqa4tX9gQY8wpFIbMhzgOxdcMSX/DUtMJcv66zN oLGUzEqy8WZpkh/tkKCsa/h64ZUZE1LLBcHkh7YDu8hRZmvv/tJKdLBOnYaMO0yG e4guaI0r6jlbZGMZgRCgyvLDNhfUjIii6zewHJngt8WE1z/l38N1tmo/XwDwBcIK EmPsZIVF4WoPdoKi6WJOuxeTWNPbi59NITUxRsb+127g71iw1B5FzLG1rCRGTNkF EKuU6fta6+QQovLWo2CK3tuL8h2mhrwRtFYGvWCCtCr/hlMC3TuiM+qHPFYC/GQY H5LAGIp6sNJ1wssFCxVU78O1YEG0ZYwGjUgSZq5nQgr2JUwT2RkRkrBmFndHMWKN 6rOFweOegQr4LO3TsCfwu/7wDxnbUa6gt0c1bqmHI60jWMulfFysgtJho5zpp35K DufpZuKRhQ+54D2Zb5J9RfGxsp+gB29possbcG90AgEqAogetd99QE0hu5xO5QwV GLOiFQPywki6cJSiYPDxSHlzYAJNGdwuOgvB8hfcDK5yNNtBz3zva95MiEGEU1Br N0nQrLNArbCPrnUaWUQdhPllRwCN1WkO0if0iIAFFuELENZ4CobtywYKWJpt/Ofv 5Fo0eAz5EtMaRm2X9EvvBuEpQzbvtwjKcStqmvT5OzDIKEyFsbg= =tRhA -----END PGP SIGNATURE----- --uqmvk2lc7u5vyulk--