]> Git Repo - linux.git/commit
net: bcmgenet: Fix return value check for fixed_phy_register()
authorRuan Jinjie <[email protected]>
Fri, 18 Aug 2023 05:12:21 +0000 (13:12 +0800)
committerDavid S. Miller <[email protected]>
Sun, 20 Aug 2023 09:58:28 +0000 (10:58 +0100)
commit32bbe64a1386065ab2aef8ce8cae7c689d0add6e
tree8fb6b24826a8930c9bf36e06990917dd3800a172
parent23a14488ea5882dea5851b65c9fce2127ee8fcad
net: bcmgenet: 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: b0ba512e25d7 ("net: bcmgenet: enable driver to work without a device tree")
Signed-off-by: Ruan Jinjie <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Acked-by: Doug Berger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/broadcom/genet/bcmmii.c
This page took 0.051355 seconds and 4 git commands to generate.