mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-11-02 05:54:26 -05:00
ath79: ag71xx: remove unused SIOCETHTOOL ioctl handling
This ioctl is currently routed through generic interface code:
dev_ioctl
dev_ethtool
__ethtool_get_link_ksettings
phy_ethtool_ioctl
Cc: John Crispin <john@phrozen.org>
Cc: Chuanhong Guo <gch981213@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
parent
bf58bc3bd8
commit
5fee0a0923
@ -946,18 +946,9 @@ err_drop:
|
||||
static int ag71xx_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
||||
{
|
||||
struct ag71xx *ag = netdev_priv(dev);
|
||||
int ret;
|
||||
|
||||
|
||||
switch (cmd) {
|
||||
case SIOCETHTOOL:
|
||||
if (ag->phy_dev == NULL)
|
||||
break;
|
||||
|
||||
spin_lock_irq(&ag->lock);
|
||||
ret = phy_ethtool_ioctl(ag->phy_dev, (void *) ifr->ifr_data);
|
||||
spin_unlock_irq(&ag->lock);
|
||||
return ret;
|
||||
|
||||
case SIOCSIFHWADDR:
|
||||
if (copy_from_user
|
||||
(dev->dev_addr, ifr->ifr_data, sizeof(dev->dev_addr)))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user