summaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-08-20 04:45:14 -0600
committerTom Rini <trini@konsulko.com>2017-08-20 19:27:43 -0400
commitc55d8b940047050176ded2e24be74f4a97e093e3 (patch)
tree707b0d483772d80aa5c25b50e0a82d06b81bf738 /env
parenteeba55cb4a8a29a47d0d26692c188b47ba6bf396 (diff)
downloadu-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/env/env.c b/env/env.c
index 8671f13f8d..1255d57f48 100644
--- a/env/env.c
+++ b/env/env.c
@@ -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);