]> git.sur5r.net Git - u-boot/commitdiff
tools/env: Don't call env_init() in fw_getenv()
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 3 Oct 2012 09:38:48 +0000 (09:38 +0000)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:54:05 +0000 (11:54 -0700)
We will only call fw_getenv when the env has already been initialized.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
tools/env/fw_env.c

index ccaa8896318ef2ac93cc1f21a04bfc4d9c49b96f..2c607bf4916bb0c9e865c00270886afdde57b794 100644 (file)
@@ -255,9 +255,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;