From: David Miller Date: Wed, 12 Dec 2012 05:15:50 +0000 Subject: Re: [PATCH 4/5] net: sfc: fix return value check in efx_ptp_probe_channel(). Message-Id: <20121212.001550.741463250196231082.davem@davemloft.net> List-Id: References: <1355271894-5284-1-git-send-email-tipecaml@gmail.com> <1355271894-5284-5-git-send-email-tipecaml@gmail.com> In-Reply-To: <1355271894-5284-5-git-send-email-tipecaml@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: tipecaml@gmail.com Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-net-drivers@solarflare.com, bhutchings@solarflare.com, netdev@vger.kernel.org From: Cyril Roelandt Date: Wed, 12 Dec 2012 01:24:53 +0100 > The ptp_clock_register() returns ERR_PTR() and never returns NULL. Replace the > NULL check by a call to IS_ERR(). > > Signed-off-by: Cyril Roelandt I'll let Ben queue this up. Probably he'll want to avoid potentially leaving an ERR_PTR in ptp->phc_clock even if, with this fix, that would be harmless.