net: macb: remove redundant struct phy_device declaration
Subsystems (3)
PATCH 1/1 net: macb: remove redundant struct phy_device declaration
While moving the chunk of code during 739de9a1563a ("net: macb: Reorganize macb_mii bringup"), the declaration of struct phy_device declaration was kept. It's not useful in this function as we alrady have a phydev pointer.
--- drivers/net/ethernet/cadence/macb_main.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/ethernet/cadence/macb_main.c +0 -2
@@ -530,8 +530,6 @@ static int macb_mii_probe(struct net_device *dev)*/ if (!bp->phy_node && !phy_find_first (bp->mii_bus)) {for (i =0 ; i <PHY_MAX_ADDR ; i++) { -struct phy_device *phydev; - phydev =mdiobus_scan (bp->mii_bus, i);if (IS_ERR (phydev) &&PTR_ERR (phydev) != -ENODEV ) {
Signature · 1 line
2.17.1
Quoted 6 lines · Nicolas Ferre
While moving the chunk of code during
739de9a1563a("net: macb: Reorganizemacb_miibringup"), the declaration of structphy_devicedeclaration was kept. It's not useful in this function as we alrady have a phydev pointer.Signed-off-by Nicolas Ferre <[email protected]>
Andrew
From: Nicolas Ferre <[email protected]>
Date: Fri, 3 May 2019 12:36:28 +0200
Quoted 6 lines
While moving the chunk of code during
739de9a1563a("net: macb: Reorganizemacb_miibringup"), the declaration of structphy_devicedeclaration was kept. It's not useful in this function as we alrady have a phydev pointer.Signed-off-by Nicolas Ferre <[email protected]>
Applied.