mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
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>
This commit is contained in:
parent
a73c1f006c
commit
5aab7f5dec
1
env/nowhere.c
vendored
1
env/nowhere.c
vendored
@ -22,7 +22,6 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||||||
*/
|
*/
|
||||||
static int env_nowhere_init(void)
|
static int env_nowhere_init(void)
|
||||||
{
|
{
|
||||||
gd->env_addr = (ulong)&default_environment[0];
|
|
||||||
gd->env_valid = ENV_INVALID;
|
gd->env_valid = ENV_INVALID;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user