aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@bisect.de>2012-02-23 17:11:39 -0500
committerDavid S. Miller <davem@davemloft.net>2012-02-23 17:11:39 -0500
commit8abe6fb51ebd1d16c93d4435a808e056113f3510 (patch)
treecdfbd79b0e455844bcb42299b4db3e4f99075f7f
parent7ca1e11ab7d83ec76f3a8ef8704adca8c7518f41 (diff)
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: David S. Miller <davem@davemloft.net>
-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 2c4069fcd981..b055731f8d88 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)
5177 5177
5178 /* Make sure the requested MAC is valid */ 5178 /* Make sure the requested MAC is valid */
5179 if (!is_valid_ether_addr(address->sa_data)) 5179 if (!is_valid_ether_addr(address->sa_data))
5180 return -EINVAL; 5180 return -EADDRNOTAVAIL;
5181 5181
5182 et131x_disable_txrx(netdev); 5182 et131x_disable_txrx(netdev);
5183 et131x_handle_send_interrupt(adapter); 5183 et131x_handle_send_interrupt(adapter);