Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5aeb176 authored by Nicolas Ferre's avatar Nicolas Ferre Committed by David S. Miller
Browse files

net: macb: remove redundant struct phy_device declaration



While moving the chunk of code during 739de9a1
("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.

Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ff24e498
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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) {