diff options
| author | Simon Glass <[email protected]> | 2017-08-03 12:22:02 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-08-15 20:50:27 -0400 |
| commit | 7938822a6b75b69fff9793b6b1769dddf1249525 (patch) | |
| tree | 10eacede3b5e5e51bac424bd54036dedb97c4d8f /include | |
| 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 <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/environment.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/environment.h b/include/environment.h index ff3f54263a6..7eaba72181e 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); }; |
