Skip to content

Commit

Permalink
env: Remove misuse of env is nowhere leftover
Browse files Browse the repository at this point in the history
When using a list of writeable variables, the initial values come from
the built-in default environment since commit 5ab8105
("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>
  • Loading branch information
herbrechtsmeier authored and trini committed May 16, 2023
1 parent 35a6fdc commit 8344162
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions env/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8344162

Please sign in to comment.