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:
504f9b5
)
mcs7830: unify return value of .ndo_set_mac_address if address is invalid
author
Danny Kukawka
<
[email protected]
>
Tue, 21 Feb 2012 02:07:50 +0000
(
02:07
+0000)
committer
David S. Miller
<
[email protected]
>
Thu, 23 Feb 2012 22:03:20 +0000
(17:03 -0500)
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: David S. Miller <
[email protected]
>
drivers/net/usb/mcs7830.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/mcs7830.c
b/drivers/net/usb/mcs7830.c
index a29aa9cf9f6ee0c7b04d343829be6d0ca8301d28..c434b6ba033793457581f5aa07b41d175698a057 100644
(file)
--- a/
drivers/net/usb/mcs7830.c
+++ b/
drivers/net/usb/mcs7830.c
@@
-239,7
+239,7
@@
static int mcs7830_set_mac_address(struct net_device *netdev, void *p)
return -EBUSY;
if (!is_valid_ether_addr(addr->sa_data))
- return -E
INVA
L;
+ return -E
ADDRNOTAVAI
L;
ret = mcs7830_hif_set_mac_address(dev, addr->sa_data);