summaryrefslogtreecommitdiff
path: root/env/sata.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-08-03 12:22:02 -0600
committerTom Rini <trini@konsulko.com>2017-08-15 20:50:27 -0400
commit7938822a6b75b69fff9793b6b1769dddf1249525 (patch)
tree10eacede3b5e5e51bac424bd54036dedb97c4d8f /env/sata.c
parente5bce247b01ae057f05cc80178f0df28ec1d27a7 (diff)
downloadu-boot-7938822a6b75b69fff9793b6b1769dddf1249525.tar.gz
u-boot-7938822a6b75b69fff9793b6b1769dddf1249525.tar.bz2
u-boot-7938822a6b75b69fff9793b6b1769dddf1249525.zip
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/sata.c')
-rw-r--r--env/sata.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/env/sata.c b/env/sata.c
index 6f9099873d..a5ff54c287 100644
--- a/env/sata.c
+++ b/env/sata.c
@@ -33,15 +33,6 @@ __weak int sata_get_env_dev(void)
return CONFIG_SYS_SATA_ENV_DEV;
}
-static int env_sata_init(void)
-{
- /* use default */
- gd->env_addr = (ulong)&default_environment[0];
- gd->env_valid = ENV_VALID;
-
- return 0;
-}
-
#ifdef CONFIG_CMD_SAVEENV
static inline int write_env(struct blk_desc *sata, unsigned long size,
unsigned long offset, void *buffer)
@@ -130,5 +121,4 @@ U_BOOT_ENV_LOCATION(sata) = {
.location = ENVL_ESATA,
.load = env_sata_load,
.save = env_save_ptr(env_sata_save),
- .init = env_sata_init,
};