env: Drop common init() functions

Most of the init() implementations just use the default environment.
Adjust env_init_new() to do this automatically, and drop the redundant
code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Simon Glass
2017-08-03 12:22:02 -06:00
committed by Tom Rini
parent e5bce247b0
commit 7938822a6b
13 changed files with 12 additions and 128 deletions

4
env/remote.c vendored
View File

@@ -33,9 +33,7 @@ static int env_remote_init(void)
return 0;
}
gd->env_addr = (ulong)default_environment;
gd->env_valid = 0;
return 0;
return -ENOENT;
}
#ifdef CONFIG_CMD_SAVEENV