projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
zynq: spi: Honour the activation / deactivation delay
[platform/kernel/u-boot.git]
/
net
/
eth_common.c
diff --git
a/net/eth_common.c
b/net/eth_common.c
index
e9d3c66
..
58fa295
100644
(file)
--- a/
net/eth_common.c
+++ b/
net/eth_common.c
@@
-34,6
+34,9
@@
int eth_setenv_enetaddr(const char *name, const uchar *enetaddr)
{
char buf[ARP_HLEN_ASCII + 1];
+ if (eth_getenv_enetaddr(name, (uchar *)buf))
+ return -EEXIST;
+
sprintf(buf, "%pM", enetaddr);
return setenv(name, buf);