summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--env/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env/env.c b/env/env.c
index 0a0f234747..e534008006 100644
--- a/env/env.c
+++ b/env/env.c
@@ -336,7 +336,7 @@ int env_init(void)
debug("%s: Environment %s init done (ret=%d)\n", __func__,
drv->name, ret);
- if (gd->env_valid == ENV_INVALID && drv->location != ENVL_NOWHERE)
+ if (gd->env_valid == ENV_INVALID)
ret = -ENOENT;
}