From: Joe Hershberger Date: Tue, 10 Jul 2012 21:23:22 +0000 (-0500) Subject: net: Inline the new eth_setenv_enetaddr_by_index function X-Git-Tag: v2012.10-rc1~415^2~35^2~9^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=154177e14a141468374f438ed3096ab097b79976;p=u-boot 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 --- diff --git a/net/eth.c b/net/eth.c index 6290b332fd..1a11ce1027 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];