mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-05 19:24:48 +00:00
env: the ops driver load becomes mandatory in struct env_driver
The ops driver load becomes mandatory in struct env_drive, change the comment for this ops and remove unnecessary test. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
ad3fec2364
commit
466d9855d4
2 changed files with 1 additions and 5 deletions
3
env/env.c
vendored
3
env/env.c
vendored
|
@ -187,9 +187,6 @@ int env_load(void)
|
||||||
for (prio = 0; (drv = env_driver_lookup(ENVOP_LOAD, prio)); prio++) {
|
for (prio = 0; (drv = env_driver_lookup(ENVOP_LOAD, prio)); prio++) {
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!drv->load)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!env_has_inited(drv->location))
|
if (!env_has_inited(drv->location))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
@ -154,8 +154,7 @@ struct env_driver {
|
||||||
/**
|
/**
|
||||||
* load() - Load the environment from storage
|
* load() - Load the environment from storage
|
||||||
*
|
*
|
||||||
* This method is optional. If not provided, no environment will be
|
* This method is required for loading environment
|
||||||
* loaded.
|
|
||||||
*
|
*
|
||||||
* @return 0 if OK, -ve on error
|
* @return 0 if OK, -ve on error
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue