diff options
author | Nicolas Ferre <nicolas.ferre@microchip.com> | 2019-05-03 12:36:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-03 10:25:34 -0400 |
commit | d5aeb17621d2214c09c2d2679da4ce9cfb37f506 (patch) | |
tree | 26e235b34da10fd6980f7d657fb7097f1d776e46 /drivers/net/ethernet/cadence | |
parent | ff24e4980a68d83090a02fda081741a410fe8eef (diff) | |
download | linux-d5aeb17621d2214c09c2d2679da4ce9cfb37f506.tar.gz |
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.
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence')
-rw-r--r-- | drivers/net/ethernet/cadence/macb_main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 009ed4c1baf3..59531adcbb42 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -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) { |