diff options
Diffstat (limited to 'drivers/net/r8169.c')
-rw-r--r-- | drivers/net/r8169.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index ec0092affd5d..a91e9b3a3eb6 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -1991,8 +1991,6 @@ static int rtl_xmii_ioctl(struct rtl8169_private *tp, struct mii_ioctl_data *dat | |||
1991 | return 0; | 1991 | return 0; |
1992 | 1992 | ||
1993 | case SIOCSMIIREG: | 1993 | case SIOCSMIIREG: |
1994 | if (!capable(CAP_NET_ADMIN)) | ||
1995 | return -EPERM; | ||
1996 | mdio_write(tp->mmio_addr, data->reg_num & 0x1f, data->val_in); | 1994 | mdio_write(tp->mmio_addr, data->reg_num & 0x1f, data->val_in); |
1997 | return 0; | 1995 | return 0; |
1998 | } | 1996 | } |