From 2c14ff587998e2b0a94bc2b693bcd43094a40b8c Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Fri, 24 Sep 2021 07:40:07 -0400 Subject: [PATCH] Revert "env: Make _init() expect _INVALID when _IS_NOWHERE" Upon further discussion, this is not required now. This reverts commit f6bc5d17afa9fe12418edaf1fc9f82beeda06132. Link: https://lore.kernel.org/r/ebd92337-669a-9a0a-0af3-d06b957f3b40@denx.de/ Signed-off-by: Tom Rini --- env/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5