提交 c55d8b94 编写于 作者: S Simon Glass 提交者: Tom Rini

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: NSimon Glass <sjg@chromium.org>
上级 eeba55cb
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册