We will only call fw_getenv when the env has already been initialized.

Signed-off-by: Joe Hershberger <joe.hershber...@ni.com>
---
 tools/env/fw_env.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index a461dbd..8bb7f9a 100644
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
@@ -247,9 +247,6 @@ char *fw_getenv (char *name)
 {
        char *env, *nxt;
 
-       if (fw_env_open())
-               return NULL;
-
        for (env = environment.data; *env; env = nxt + 1) {
                char *val;
 
-- 
1.7.11.5

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to