summaryrefslogtreecommitdiffstats
path: root/drivers/staging/et131x
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@bisect.de>2012-02-21 13:07:51 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-24 12:03:13 -0800
commitd8aa3e26f48cf42ef8cf74cedd50e6961b10ff54 (patch)
treea068499d5bbb5fb89621306924aa2dd456349596 /drivers/staging/et131x
parent72a474b8cdac7e316f5299b0edf2d82f86d92829 (diff)
downloadblackbird-op-linux-d8aa3e26f48cf42ef8cf74cedd50e6961b10ff54.tar.gz
blackbird-op-linux-d8aa3e26f48cf42ef8cf74cedd50e6961b10ff54.zip
Staging: et131x: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/et131x')
-rw-r--r--drivers/staging/et131x/et131x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c
index fafc9fb42a07..3f919babe79b 100644
--- a/drivers/staging/et131x/et131x.c
+++ b/drivers/staging/et131x/et131x.c
@@ -5177,7 +5177,7 @@ static int et131x_set_mac_addr(struct net_device *netdev, void *new_mac)
/* Make sure the requested MAC is valid */
if (!is_valid_ether_addr(address->sa_data))
- return -EINVAL;
+ return -EADDRNOTAVAIL;
et131x_disable_txrx(netdev);
et131x_handle_send_interrupt(adapter);
OpenPOWER on IntegriCloud