]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ethernet: remove superfluous clearing of phydev
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 21 Mar 2023 13:17:45 +0000 (14:17 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Mar 2023 03:47:27 +0000 (20:47 -0700)
commit22f5c234141d657a132f230aec08a670ee96232a
tree6806d92b124d28434497c8f306329c55103e5a29
parentaab3c0a206308f6e1e8d2dc6ca61c914d7d90f6c
ethernet: remove superfluous clearing of phydev

phy_disconnect() calls phy_detach() which already clears 'phydev' if it
is attached to a struct net_device.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230321131745.27688-1-wsa+renesas@sang-engineering.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/engleder/tsnep_main.c
drivers/net/ethernet/microchip/lan743x_main.c
drivers/net/ethernet/renesas/rswitch.c
drivers/net/ethernet/smsc/smsc911x.c
drivers/net/ethernet/sunplus/spl2sw_phy.c