]> Git Repo - linux.git/commit
net: bgmac: Fix return value check for fixed_phy_register()
authorRuan Jinjie <[email protected]>
Fri, 18 Aug 2023 05:12:20 +0000 (13:12 +0800)
committerDavid S. Miller <[email protected]>
Sun, 20 Aug 2023 09:58:28 +0000 (10:58 +0100)
commit23a14488ea5882dea5851b65c9fce2127ee8fcad
treea20b55f1f92f459db975e99f289ff1263d3ac923
parenta0e026e7b37e997f4fa3fcaa714e5484f3ce9e75
net: bgmac: Fix return value check for fixed_phy_register()

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 <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/broadcom/bgmac.c
This page took 0.056627 seconds and 4 git commands to generate.