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>
master
Joe Hershberger 12 years ago committed by Tom Rini
parent 62a34a04e7
commit d9acae1a88
  1. 3
      tools/env/fw_env.c

@ -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;

Loading…
Cancel
Save