]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - net/eth.c
net: Remove duplicate bootfile syncing functionality
[karo-tx-uboot.git] / net / eth.c
index 6c49db583b60d92615ba3ad42f349068c7374c3a..a40abb5f949dd36d721342afe4eca4f0d3246296 100644 (file)
--- 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