summaryrefslogtreecommitdiff
path: root/tools
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
parent62a34a04e7259ea1562749de3b0e35e94386b37b (diff)
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')
-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 ccaa8896318..2c607bf4916 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;