From d9acae1a880a52b3a6ad24af8c7f8312e59ea9b1 Mon Sep 17 00:00:00 2001 From: Joe Hershberger Date: Wed, 3 Oct 2012 09:38:48 +0000 Subject: [PATCH] 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 --- 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 ccaa889631..2c607bf491 100644 --- a/tools/env/fw_env.c +++ b/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; -- 2.30.2