From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] net: lantiq: Fix return value check in xrx200_probe() Date: Mon, 17 Sep 2018 08:07:24 -0700 (PDT) Message-ID: <20180917.080724.2088373610597772187.davem@davemloft.net> References: <1536975230-185101-1-git-send-email-weiyongjun1@huawei.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: hauke@hauke-m.de, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org To: weiyongjun1@huawei.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:45952 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728437AbeIQUfJ (ORCPT ); Mon, 17 Sep 2018 16:35:09 -0400 In-Reply-To: <1536975230-185101-1-git-send-email-weiyongjun1@huawei.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Wei Yongjun Date: Sat, 15 Sep 2018 01:33:50 +0000 > In case of error, the function devm_ioremap_resource() returns ERR_PTR() > and never returns NULL. The NULL test in the return value check should > be replaced with IS_ERR(). > > Fixes: fe1a56420cf2 ("net: lantiq: Add Lantiq / Intel VRX200 Ethernet driver") > Signed-off-by: Wei Yongjun Applied.