diff options
Diffstat (limited to 'drivers/net/pci-skeleton.c')
-rw-r--r-- | drivers/net/pci-skeleton.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/pci-skeleton.c b/drivers/net/pci-skeleton.c index c47ba3610c58..0c44b48f1384 100644 --- a/drivers/net/pci-skeleton.c +++ b/drivers/net/pci-skeleton.c | |||
@@ -1784,11 +1784,6 @@ static int netdrv_ioctl (struct net_device *dev, struct ifreq *rq, int cmd) | |||
1784 | break; | 1784 | break; |
1785 | 1785 | ||
1786 | case SIOCSMIIREG: /* Write MII PHY register. */ | 1786 | case SIOCSMIIREG: /* Write MII PHY register. */ |
1787 | if (!capable (CAP_NET_ADMIN)) { | ||
1788 | rc = -EPERM; | ||
1789 | break; | ||
1790 | } | ||
1791 | |||
1792 | spin_lock_irqsave (&tp->lock, flags); | 1787 | spin_lock_irqsave (&tp->lock, flags); |
1793 | mdio_write (dev, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in); | 1788 | mdio_write (dev, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in); |
1794 | spin_unlock_irqrestore (&tp->lock, flags); | 1789 | spin_unlock_irqrestore (&tp->lock, flags); |