diff options
author | Ruan Jinjie | 2023-08-18 13:12:21 +0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-08-30 16:11:02 +0200 |
commit | afc9d3d217939842ba4e2795356b8dd53f7a2ed6 (patch) | |
tree | 01462478edaae7fa2035629d434821cb29e6bbe9 /net/sctp/outqueue.c | |
parent | 029e491b8c11859525a1d6a307622bbc3a4ae559 (diff) |
net: bcmgenet: Fix return value check for fixed_phy_register()
[ Upstream commit 32bbe64a1386065ab2aef8ce8cae7c689d0add6e ]
The fixed_phy_register() function returns error pointers and never
returns NULL. Update the checks accordingly.
Fixes: b0ba512e25d7 ("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>
Diffstat (limited to 'net/sctp/outqueue.c')
0 files changed, 0 insertions, 0 deletions