Browse Source

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>
Joe Hershberger 12 năm trước cách đây
mục cha
commit
d9acae1a88
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  1. 0 3
      tools/env/fw_env.c

+ 0 - 3
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;