tools/env: Don't call env_init() in fw_getenv() We will only call fw_getenv when the env has already been initialized. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index ccaa889..2c607bf 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c
@@ -255,9 +255,6 @@ { char *env, *nxt; - if (fw_env_open()) - return NULL; - for (env = environment.data; *env; env = nxt + 1) { char *val;