ramips: ethernet: remove unused SIOCETHTOOL ioctl handling
authorPetr Štetiar <ynezz@true.cz>
Sat, 25 May 2019 10:06:14 +0000 (12:06 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 5 Jun 2019 08:12:30 +0000 (10:12 +0200)
This ioctl is currently routed through generic interface code.

  dev_ioctl
    dev_ethtool
      __ethtool_get_link_ksettings
        phy_ethtool_ioctl

Cc: Felix Fietkau <nbd@nbd.name>
Cc: John Crispin <john@phrozen.org>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c

index 10d9fd7a3e67cd7380346dd45385e2771dc9eaea..b2c3d32c5549b6fd8ea4c76dc224b9b4b41130d8 100644 (file)
@@ -1411,19 +1411,8 @@ static int fe_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
        if (!priv->phy_dev)
                return -ENODEV;
 
-       switch (cmd) {
-       case SIOCETHTOOL:
-               return phy_ethtool_ioctl(priv->phy_dev,
-                               (void *) ifr->ifr_data);
-       case SIOCGMIIPHY:
-       case SIOCGMIIREG:
-       case SIOCSMIIREG:
-               return phy_mii_ioctl(priv->phy_dev, ifr, cmd);
-       default:
-               break;
-       }
 
-       return -EOPNOTSUPP;
+       return phy_mii_ioctl(priv->phy_dev, ifr, cmd);
 }
 
 static int fe_change_mtu(struct net_device *dev, int new_mtu)