mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
net: bcmgenet: Fix return value check for fixed_phy_register()
[ Upstream commit32bbe64a13] The fixed_phy_register() function returns error pointers and never returns NULL. Update the checks accordingly. Fixes:b0ba512e25("net: bcmgenet: enable driver to work without a device tree") Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Acked-by: Doug Berger <opendmb@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d3a74a85fb
commit
691799211b
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue