mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
env: nvram: Let generic env_init() assign default environment
env_nvram_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>
This commit is contained in:
parent
07dcd82546
commit
4735de4ffc
1 changed files with 1 additions and 2 deletions
1
env/nvram.c
vendored
1
env/nvram.c
vendored
|
@ -94,7 +94,6 @@ static int env_nvram_init(void)
|
|||
#endif
|
||||
gd->env_valid = ENV_VALID;
|
||||
} else {
|
||||
gd->env_addr = (ulong)&default_environment[0];
|
||||
gd->env_valid = ENV_INVALID;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue