ethernet: unify return value of .ndo_set_mac_address if address is invalid
authorDanny Kukawka <danny.kukawka@bisect.de>
Tue, 21 Feb 2012 02:07:49 +0000 (02:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Feb 2012 22:03:20 +0000 (17:03 -0500)
commit504f9b5a6bb5336ad434438d0cdd61a16db80129
tree307356c1d47a8300fd4973159edaad130c5cda9f
parent32d219ed61a97f6591a941e23673b2c1dd8628e7
ethernet: unify return value of .ndo_set_mac_address if address is invalid

Unify return value of .ndo_set_mac_address if the given address
isn't valid. Return -EADDRNOTAVAIL as eth_mac_addr() already does
if is_valid_ether_addr() fails.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 files changed:
drivers/net/ethernet/aeroflex/greth.c
drivers/net/ethernet/broadcom/bnx2.c
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
drivers/net/ethernet/dlink/sundance.c
drivers/net/ethernet/marvell/mv643xx_eth.c
drivers/net/ethernet/marvell/pxa168_eth.c
drivers/net/ethernet/neterion/s2io.c
drivers/net/ethernet/pasemi/pasemi_mac.c
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sun/niu.c
drivers/net/ethernet/ti/davinci_emac.c
drivers/net/ethernet/tile/tilepro.c
drivers/net/ethernet/tundra/tsi108_eth.c