summaryrefslogtreecommitdiff
path: root/tools/env/fw_env.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-10-03 09:38:48 +0000
committerTom Rini <trini@ti.com>2012-10-15 11:54:05 -0700
commitd9acae1a880a52b3a6ad24af8c7f8312e59ea9b1 (patch)
treecdbf152954b3116bd9856deb5487953a1c68ff49 /tools/env/fw_env.c
parent62a34a04e7259ea1562749de3b0e35e94386b37b (diff)
downloadu-boot-imx-d9acae1a880a52b3a6ad24af8c7f8312e59ea9b1.zip
u-boot-imx-d9acae1a880a52b3a6ad24af8c7f8312e59ea9b1.tar.gz
u-boot-imx-d9acae1a880a52b3a6ad24af8c7f8312e59ea9b1.tar.bz2
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>
Diffstat (limited to 'tools/env/fw_env.c')
-rw-r--r--tools/env/fw_env.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index ccaa889..2c607bf 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;