Skip to content

Commit d5aeb17

Browse files
noglitchdavem330
authored andcommitted
net: macb: remove redundant struct phy_device declaration
While moving the chunk of code during 739de9a ("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: Nicolas Ferre <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ff24e49 commit d5aeb17

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/cadence/macb_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,6 @@ static int macb_mii_probe(struct net_device *dev)
530530
*/
531531
if (!bp->phy_node && !phy_find_first(bp->mii_bus)) {
532532
for (i = 0; i < PHY_MAX_ADDR; i++) {
533-
struct phy_device *phydev;
534-
535533
phydev = mdiobus_scan(bp->mii_bus, i);
536534
if (IS_ERR(phydev) &&
537535
PTR_ERR(phydev) != -ENODEV) {

0 commit comments

Comments
 (0)