summaryrefslogtreecommitdiff
path: root/env/remote.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/remote.c
parente5bce247b01ae057f05cc80178f0df28ec1d27a7 (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/remote.c')
-rw-r--r--env/remote.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/env/remote.c b/env/remote.c
index 0324cba099..c5dce5b966 100644
--- a/env/remote.c
+++ b/env/remote.c
@@ -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