summaryrefslogtreecommitdiff
path: root/net/eth.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-07-10 16:23:22 -0500
committerJoe Hershberger <joe.hershberger@ni.com>2012-07-11 13:15:32 -0500
commit154177e14a141468374f438ed3096ab097b79976 (patch)
tree43cf1c7bb869fdbc571021acd62ebff7fc934777 /net/eth.c
parentc88ef3c12dcf8596433d52a2631982d9d3a478dd (diff)
downloadu-boot-imx-154177e14a141468374f438ed3096ab097b79976.zip
u-boot-imx-154177e14a141468374f438ed3096ab097b79976.tar.gz
u-boot-imx-154177e14a141468374f438ed3096ab097b79976.tar.bz2
net: Inline the new eth_setenv_enetaddr_by_index function
This function is currently only used in one case. Inline for now. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net/eth.c')
-rw-r--r--net/eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/eth.c b/net/eth.c
index 6290b33..1a11ce1 100644
--- 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];