From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7619B1BB23 for ; Fri, 18 Aug 2023 18:57:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EFADC433C8; Fri, 18 Aug 2023 18:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692385033; bh=dmotTUBvB7CUFjLCtFY0R8RrgsJW1Rsf5697zp0LqBE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fIA0g2G4hGoYBMV5p7sHZmVI8t5aHjGKZu51BlKH6TwmMcdb82DZNOhzT+dpsBZOp htY7DwFgakpLUt3OrgQ7zlLQaPoJegkmtFJiIaMFneiq7lq/WrrvQs/maLceBp66z9 EgnO5j6wvrpdSXrEvC2pQEdfXhxEe2VKh+tNeuPDEBcYV1kASwP84/eUYENMJT6+Zw L1fDpm53/vlBE0FR2M20hAI9/HkaxK+wOyiC1OgzrqxCXb3Juw2fTXMXlhiUcU1ZYy 0dVPrZD1dvnNPyorpmaSeIccaf3zIE1liAclulpscw415y91cJPPDo5whszkLUL0YZ /Q1h6v/trX9aw== Date: Fri, 18 Aug 2023 21:57:06 +0300 From: Leon Romanovsky To: Ruan Jinjie Cc: rafal@milecki.pl, bcm-kernel-feedback-list@broadcom.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, opendmb@gmail.com, florian.fainelli@broadcom.com, pgynther@google.com, netdev@vger.kernel.org Subject: Re: [PATCH net v3 1/2] net: bgmac: Fix return value check for fixed_phy_register() Message-ID: <20230818185706.GJ22185@unreal> References: <20230818051221.3634844-1-ruanjinjie@huawei.com> <20230818051221.3634844-2-ruanjinjie@huawei.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230818051221.3634844-2-ruanjinjie@huawei.com> On Fri, Aug 18, 2023 at 01:12:20PM +0800, Ruan Jinjie wrote: > The fixed_phy_register() function returns error pointers and never > returns NULL. Update the checks accordingly. > > Fixes: c25b23b8a387 ("bgmac: register fixed PHY for ARM BCM470X / BCM5301X chipsets") > Signed-off-by: Ruan Jinjie > Reviewed-by: Andrew Lunn > --- > v3: > - Split the err code update code into another patch set as suggested. > v2: > - Remove redundant NULL check and fix the return value. > - Update the commit title and message. > - Add the fix tag. > --- > drivers/net/ethernet/broadcom/bgmac.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky