]> Git Repo - linux.git/commit
net: bgmac: Return PTR_ERR() for fixed_phy_register()
authorRuan Jinjie <[email protected]>
Fri, 18 Aug 2023 07:07:05 +0000 (15:07 +0800)
committerDavid S. Miller <[email protected]>
Sun, 20 Aug 2023 14:13:27 +0000 (15:13 +0100)
commitd6499f0b7c7ce3d69f658331e78e520c7ebcb238
tree82620d4b686b5781c7f897381c9fd1930534469d
parentb22eef6864caadd2199e3db0be7235c176a04f89
net: bgmac: Return PTR_ERR() for fixed_phy_register()

fixed_phy_register() returns -EPROBE_DEFER, -EINVAL and -EBUSY,
etc, in addition to -ENODEV. The best practice is to return
these error codes with PTR_ERR().

Signed-off-by: Ruan Jinjie <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/broadcom/bgmac.c
This page took 0.058622 seconds and 4 git commands to generate.