
22 Oct
2021
22 Oct
'21
3:47 p.m.
From: Marek Behún marek.behun@nic.cz
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 --- 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.32.0