diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-20 04:45:14 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-20 19:27:43 -0400 |
commit | c55d8b940047050176ded2e24be74f4a97e093e3 (patch) | |
tree | 707b0d483772d80aa5c25b50e0a82d06b81bf738 /env | |
parent | eeba55cb4a8a29a47d0d26692c188b47ba6bf396 (diff) | |
download | u-boot-c55d8b940047050176ded2e24be74f4a97e093e3.tar.gz u-boot-c55d8b940047050176ded2e24be74f4a97e093e3.tar.bz2 u-boot-c55d8b940047050176ded2e24be74f4a97e093e3.zip |
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>
Diffstat (limited to 'env')
-rw-r--r-- | env/env.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |