projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ethernet: unify return value of .ndo_set_mac_address if address is invalid
[deliverable/linux.git]
/
drivers
/
net
/
ethernet
/
ti
/
davinci_emac.c
diff --git
a/drivers/net/ethernet/ti/davinci_emac.c
b/drivers/net/ethernet/ti/davinci_emac.c
index f053aebbaa06acca405a5d233af425dadd0cd00b..6d74cb7aaae8ab9426d63e50f05a190a6d14c816 100644
(file)
--- a/
drivers/net/ethernet/ti/davinci_emac.c
+++ b/
drivers/net/ethernet/ti/davinci_emac.c
@@
-1254,7
+1254,7
@@
static int emac_dev_setmac_addr(struct net_device *ndev, void *addr)
struct sockaddr *sa = addr;
if (!is_valid_ether_addr(sa->sa_data))
- return -E
INVA
L;
+ return -E
ADDRNOTAVAI
L;
/* Store mac addr in priv and rx channel and set it in EMAC hw */
memcpy(priv->mac_addr, sa->sa_data, ndev->addr_len);
This page took
0.055283 seconds
and
5
git commands to generate.