projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72a474b
)
Staging: et131x: unify return value of .ndo_set_mac_address if address is invalid
author
Danny Kukawka
<
[email protected]
>
Tue, 21 Feb 2012 12:07:51 +0000
(13:07 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 24 Feb 2012 20:03:13 +0000
(12:03 -0800)
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 <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/et131x/et131x.c
patch
|
blob
|
history
diff --git
a/drivers/staging/et131x/et131x.c
b/drivers/staging/et131x/et131x.c
index fafc9fb42a07e88897db963eb3358d1d2d91fa5b..3f919babe79bbf9ce8e54b5db39f3c9a7de68cf5 100644
(file)
--- 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 -E
INVA
L;
+ return -E
ADDRNOTAVAI
L;
et131x_disable_txrx(netdev);
et131x_handle_send_interrupt(adapter);