diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-20 14:27:25 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-05-21 09:13:20 -0400 |
commit | 2d1febf7d5867cb5441c5d5081d042b61cc647eb (patch) | |
tree | 1f65cba1019b259aba248c7848e339f7c808f482 /net | |
parent | c0a93440a7cb50843510549d9943a4fba211f0f2 (diff) |
net: Remove duplicate bootfile syncing functionality
The bootfile env var is already kept up to date by the callback in net.c
so there is no need to poll it too.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/eth.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/net/eth.c b/net/eth.c index 6c49db583b6..a40abb5f949 100644 --- a/net/eth.c +++ b/net/eth.c @@ -60,16 +60,6 @@ static inline int eth_setenv_enetaddr_by_index(const char *base_name, int index, return eth_setenv_enetaddr(enetvar, enetaddr); } -static void eth_env_init(void) -{ - const char *s; - - s = getenv("bootfile"); - if (s != NULL) - copy_filename(net_boot_file_name, s, - sizeof(net_boot_file_name)); -} - static int eth_mac_skip(int index) { char enetvar[15]; @@ -104,8 +94,6 @@ static void eth_common_init(void) phy_init(); #endif - eth_env_init(); - /* * If board-specific initialization exists, call it. * If not, call a CPU-specific one |