From: Joe Hershberger Date: Wed, 3 Oct 2012 09:38:48 +0000 (+0000) Subject: tools/env: Don't call env_init() in fw_getenv() X-Git-Tag: v2013.01-rc1~239 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d9acae1a880a52b3a6ad24af8c7f8312e59ea9b1;p=u-boot 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 --- 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;