mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
env: Allow env_load() to detect errors
Now that we have errors available in the environment driver's load() method, check the return valid. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
eeba55cb4a
commit
c55d8b9400
1 changed files with 1 additions and 1 deletions
2
env/env.c
vendored
2
env/env.c
vendored
|
@ -98,7 +98,7 @@ int env_load(void)
|
|||
return -ENODEV;
|
||||
if (!drv->load)
|
||||
return 0;
|
||||
drv->load(); /* TODO(sjg@chromium.org): Make this return an error */
|
||||
ret = drv->load();
|
||||
if (ret) {
|
||||
debug("%s: Environment failed to load (err=%d)\n", __func__,
|
||||
ret);
|
||||
|
|
Loading…
Reference in a new issue