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>
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 @@
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];