diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2021-10-22 15:47:18 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-10-31 12:26:44 -0600 |
commit | 5aab7f5dec8ff7679bdfe36a99364f2a7f6948f9 (patch) | |
tree | f5e8bba3536c1701b19eac488fd719d3daef84dd /env | |
parent | a73c1f006ce89e362120bba5fa980ebb52f96283 (diff) | |
download | u-boot-5aab7f5dec8ff7679bdfe36a99364f2a7f6948f9.tar.gz u-boot-5aab7f5dec8ff7679bdfe36a99364f2a7f6948f9.tar.bz2 u-boot-5aab7f5dec8ff7679bdfe36a99364f2a7f6948f9.zip |
env: nowhere: Let generic env_init() assign default environment
env_nowhere_init() assigns default environment if ENV_INVALID, but this
is done in the generic env_init() function, which calls this
initializer, so drop it from here.
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'env')
-rw-r--r-- | env/nowhere.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/env/nowhere.c b/env/nowhere.c index 1fcf503453..dc93b6f2e4 100644 --- a/env/nowhere.c +++ b/env/nowhere.c @@ -22,7 +22,6 @@ DECLARE_GLOBAL_DATA_PTR; */ static int env_nowhere_init(void) { - gd->env_addr = (ulong)&default_environment[0]; gd->env_valid = ENV_INVALID; return 0; |