projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62a34a0
)
tools/env: Don't call env_init() in fw_getenv()
author
Joe Hershberger
<joe.hershberger@ni.com>
Wed, 3 Oct 2012 09:38:48 +0000
(09:38 +0000)
committer
Tom Rini
<trini@ti.com>
Mon, 15 Oct 2012 18:54:05 +0000
(11:54 -0700)
We will only call fw_getenv when the env has already been initialized.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
tools/env/fw_env.c
patch
|
blob
|
history
diff --git
a/tools/env/fw_env.c
b/tools/env/fw_env.c
index ccaa8896318ef2ac93cc1f21a04bfc4d9c49b96f..2c607bf4916bb0c9e865c00270886afdde57b794 100644
(file)
--- 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;