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>
This commit is contained in:
Joe Hershberger 2012-10-03 09:38:48 +00:00 committed by Tom Rini
parent 62a34a04e7
commit d9acae1a88
1 changed files with 0 additions and 3 deletions

3
tools/env/fw_env.c vendored
View 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;