]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Revert "env: Make _init() expect _INVALID when _IS_NOWHERE"
authorTom Rini <trini@konsulko.com>
Fri, 24 Sep 2021 11:40:07 +0000 (07:40 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 24 Sep 2021 11:43:22 +0000 (07:43 -0400)
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 <trini@konsulko.com>
env/env.c

index 0a0f234747ab82e909f8397d348702e260c5ca20..e53400800606e20d3976eb5f123d51dfe131e829 100644 (file)
--- 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;
        }