From 7938822a6b75b69fff9793b6b1769dddf1249525 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 3 Aug 2017 12:22:02 -0600 Subject: 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 Reviewed-by: Tom Rini --- env/remote.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'env/remote.c') 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 -- cgit v1.2.3