diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-03 12:22:02 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-15 20:50:27 -0400 |
commit | 7938822a6b75b69fff9793b6b1769dddf1249525 (patch) | |
tree | 10eacede3b5e5e51bac424bd54036dedb97c4d8f /env/nowhere.c | |
parent | e5bce247b01ae057f05cc80178f0df28ec1d27a7 (diff) |
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>
Diffstat (limited to 'env/nowhere.c')
-rw-r--r-- | env/nowhere.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/env/nowhere.c b/env/nowhere.c index 6a67ab09ff..1d2ae85a57 100644 --- a/env/nowhere.c +++ b/env/nowhere.c @@ -17,25 +17,6 @@ DECLARE_GLOBAL_DATA_PTR; env_t *env_ptr; -static void env_nowhere_load(void) -{ -} - -/* - * Initialize Environment use - * - * We are still running from ROM, so data use is limited - */ -static int env_nowhere_init(void) -{ - gd->env_addr = (ulong)&default_environment[0]; - gd->env_valid = 0; - - return 0; -} - U_BOOT_ENV_LOCATION(nowhere) = { .location = ENVL_NOWHERE, - .load = env_nowhere_load, - .init = env_nowhere_init, }; |