aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass2019-08-01 09:46:54 -0600
committerTom Rini2019-08-11 16:43:41 -0400
commit36c8b143c0c113232bcf47d6499a3982fdfaf98a (patch)
treebece8d64b485797ecfbcf1b582da2936d73c6065 /cmd
parentb79cf1af0d1cf175c4414ea1b8465747431d77cf (diff)
env: net: Move eth_parse_enetaddr() to net.c/h
This function fits better with the network subsystem, so move it. Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/nvedit.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/cmd/nvedit.c b/cmd/nvedit.c
index 751b77d0e98..01110e9b3a6 100644
--- a/cmd/nvedit.c
+++ b/cmd/nvedit.c
@@ -358,18 +358,6 @@ ulong env_get_hex(const char *varname, ulong default_val)
return value;
}
-void eth_parse_enetaddr(const char *addr, uint8_t *enetaddr)
-{
- char *end;
- int i;
-
- for (i = 0; i < 6; ++i) {
- enetaddr[i] = addr ? simple_strtoul(addr, &end, 16) : 0;
- if (addr)
- addr = (*end) ? end + 1 : end;
- }
-}
-
int eth_env_get_enetaddr(const char *name, uint8_t *enetaddr)
{
eth_parse_enetaddr(env_get(name), enetaddr);