projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c88ef3c
)
net: Inline the new eth_setenv_enetaddr_by_index function
author
Joe Hershberger
<joe.hershberger@ni.com>
Tue, 10 Jul 2012 21:23:22 +0000
(16:23 -0500)
committer
Joe Hershberger
<joe.hershberger@ni.com>
Wed, 11 Jul 2012 18:15:32 +0000
(13:15 -0500)
This function is currently only used in one case. Inline for now.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
net/eth.c
patch
|
blob
|
history
diff --git
a/net/eth.c
b/net/eth.c
index 6290b332fd372fe84efe41c89bbefe2bf2064a80..1a11ce10277e591eee26acc493475514eba5b72b 100644
(file)
--- a/
net/eth.c
+++ b/
net/eth.c
@@
-62,7
+62,7
@@
int eth_getenv_enetaddr_by_index(const char *base_name, int index,
return eth_getenv_enetaddr(enetvar, enetaddr);
}
-int eth_setenv_enetaddr_by_index(const char *base_name, int index,
+
static inline
int eth_setenv_enetaddr_by_index(const char *base_name, int index,
uchar *enetaddr)
{
char enetvar[32];