]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
env: nowhere: Let generic env_init() assign default environment
authorMarek Behún <marek.behun@nic.cz>
Fri, 22 Oct 2021 13:47:18 +0000 (15:47 +0200)
committerSimon Glass <sjg@chromium.org>
Sun, 31 Oct 2021 18:26:44 +0000 (12:26 -0600)
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>
env/nowhere.c

index 1fcf5034535bb137d6c755a463bb740a9cb20542..dc93b6f2e485413e727165a2471ac93586b8635f 100644 (file)
@@ -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;