From: Marek BehĂșn Date: Fri, 22 Oct 2021 13:47:18 +0000 (+0200) Subject: env: nowhere: Let generic env_init() assign default environment X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5aab7f5dec8ff7679bdfe36a99364f2a7f6948f9;p=u-boot.git 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 Reviewed-by: Simon Glass --- 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;