From 5aab7f5dec8ff7679bdfe36a99364f2a7f6948f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Beh=C3=BAn?= Date: Fri, 22 Oct 2021 15:47:18 +0200 Subject: [PATCH] env: nowhere: Let generic env_init() assign default environment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- env/nowhere.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.39.5