From: Tom Rini Date: Fri, 24 Sep 2021 11:40:07 +0000 (-0400) Subject: Revert "env: Make _init() expect _INVALID when _IS_NOWHERE" X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=2c14ff587998e2b0a94bc2b693bcd43094a40b8c;p=u-boot.git 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 --- 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; }