diff options
author | Patrick Delaunay | 2020-07-28 11:51:19 +0200 |
---|---|---|
committer | Tom Rini | 2020-07-31 10:13:00 -0400 |
commit | 466d9855d4ee828c998ee3ea29e5685e38d3064e (patch) | |
tree | 8927afc844dde543caecf1710dea61dd8d1ae912 | |
parent | ad3fec2364ebfc896ce5bd5269f56df9f0c3e5a9 (diff) |
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>
-rw-r--r-- | env/env.c | 3 | ||||
-rw-r--r-- | include/env_internal.h | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/env/env.c b/env/env.c index bcc68c6bcef..5cf5bd238fc 100644 --- a/env/env.c +++ b/env/env.c @@ -187,9 +187,6 @@ int env_load(void) for (prio = 0; (drv = env_driver_lookup(ENVOP_LOAD, prio)); prio++) { int ret; - if (!drv->load) - continue; - if (!env_has_inited(drv->location)) continue; diff --git a/include/env_internal.h b/include/env_internal.h index b9459f926c6..b26dc6239c8 100644 --- a/include/env_internal.h +++ b/include/env_internal.h @@ -154,8 +154,7 @@ struct env_driver { /** * load() - Load the environment from storage * - * This method is optional. If not provided, no environment will be - * loaded. + * This method is required for loading environment * * @return 0 if OK, -ve on error */ |