netdev: Remove redundant checks for CAP_NET_ADMIN in MDIO implementations
commit7ab0f2736bfe137a82a7084bbfb5f809da95cabd
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 3 Sep 2009 10:39:43 +0000 (3 10:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Sep 2009 03:02:11 +0000 (3 20:02 -0700)
treee305ec96eceebb285efee4b6fd307822ab257fe6
parentaae5e7c30fc660c50dfecbdd745799b05af90f01
netdev: Remove redundant checks for CAP_NET_ADMIN in MDIO implementations

dev_ioctl() already checks capable(CAP_NET_ADMIN) before calling the
driver's implementation of MDIO ioctls.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
30 files changed:
drivers/net/amd8111e.c
drivers/net/atl1c/atl1c_main.c
drivers/net/atl1e/atl1e_main.c
drivers/net/atlx/atl2.c
drivers/net/bnx2.c
drivers/net/cassini.c
drivers/net/e1000/e1000_main.c
drivers/net/e1000e/netdev.c
drivers/net/ibm_newemac/core.c
drivers/net/igb/igb_main.c
drivers/net/mdio.c
drivers/net/mii.c
drivers/net/natsemi.c
drivers/net/pci-skeleton.c
drivers/net/pcmcia/3c574_cs.c
drivers/net/pcmcia/axnet_cs.c
drivers/net/pcmcia/pcnet_cs.c
drivers/net/pcmcia/xirc2ps_cs.c
drivers/net/phy/phy.c
drivers/net/r8169.c
drivers/net/sis900.c
drivers/net/skge.c
drivers/net/sky2.c
drivers/net/sungem.c
drivers/net/tg3.c
drivers/net/tlan.c
drivers/net/tulip/tulip_core.c
drivers/net/tulip/winbond-840.c
drivers/net/via-velocity.c
drivers/net/yellowfin.c