From patchwork Wed Oct 3 19:38:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,v2,3/5] tools/env: Don't call env_init() in fw_getenv() Date: Wed, 03 Oct 2012 09:38:48 -0000 From: Joe Hershberger X-Patchwork-Id: 188911 Message-Id: <1349293130-5715-4-git-send-email-joe.hershberger@ni.com> To: u-boot@lists.denx.de Cc: Tom Rini , Joe Hershberger 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 af879f1..f883804 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -258,9 +258,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;