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 --- include/environment.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/environment.h') diff --git a/include/environment.h b/include/environment.h index ff3f54263a..7eaba72181 100644 --- a/include/environment.h +++ b/include/environment.h @@ -259,7 +259,8 @@ struct env_driver { * * This method is optional. * - * @return 0 if OK, -ve on error + * @return 0 if OK, -ENOENT if no initial environment could be found, + * other -ve on error */ int (*init)(void); }; -- cgit v1.2.1