Skip to content

Commit c55d8b9

Browse files
sjg20trini
authored andcommitted
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 <[email protected]>
1 parent eeba55c commit c55d8b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

env/env.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ int env_load(void)
9898
return -ENODEV;
9999
if (!drv->load)
100100
return 0;
101-
drv->load(); /* TODO([email protected]): Make this return an error */
101+
ret = drv->load();
102102
if (ret) {
103103
debug("%s: Environment failed to load (err=%d)\n", __func__,
104104
ret);

0 commit comments

Comments
 (0)