]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: phy: remove unused code in phy_probe
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 17 Dec 2018 22:43:25 +0000 (23:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Dec 2018 05:38:12 +0000 (21:38 -0800)
3c1bcc8614db ("net: ethernet: Convert phydev advertize and supported
from u32 to link mode") left some unused code in phy_probe(), remove it.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c

index 7d5d698604aac358a86700cdd3d2418bc9ccd583..54af2bde6682117af791ef533aca25ee54d8d08e 100644 (file)
@@ -2138,7 +2138,6 @@ static int phy_probe(struct device *dev)
        struct phy_device *phydev = to_phy_device(dev);
        struct device_driver *drv = phydev->mdio.dev.driver;
        struct phy_driver *phydrv = to_phy_driver(drv);
-       u32 features;
        int err = 0;
 
        phydev->drv = phydrv;
@@ -2158,7 +2157,6 @@ static int phy_probe(struct device *dev)
         * a controller will attach, and may modify one
         * or both of these values
         */
-       ethtool_convert_link_mode_to_legacy_u32(&features, phydrv->features);
        linkmode_copy(phydev->supported, phydrv->features);
        of_set_phy_supported(phydev);
        linkmode_copy(phydev->advertising, phydev->supported);