]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
env: Remove misuse of env is nowhere leftover
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Tue, 2 May 2023 10:23:05 +0000 (12:23 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 16 May 2023 20:12:21 +0000 (16:12 -0400)
When using a list of writeable variables, the initial values come from
the built-in default environment since commit 5ab81058364b
("env: Complete generic support for writable list"). Remove leftover of
misuse of the env is nowhere driver as default environment.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
env/env.c

index ad774f41175babe834e642a975936709fd44214a..2aa52c98f8fdb540443c76cd3db2df9817d230c0 100644 (file)
--- a/env/env.c
+++ b/env/env.c
@@ -217,9 +217,7 @@ int env_load(void)
                        printf("OK\n");
                        gd->env_load_prio = prio;
 
-#if !CONFIG_IS_ENABLED(ENV_APPEND)
                        return 0;
-#endif
                } else if (ret == -ENOMSG) {
                        /* Handle "bad CRC" case */
                        if (best_prio == -1)