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

Correct return code from builtin_run_command_list()

The return code is not consistent with cli_simple_run_command_list(). For the
last command in a sequence, the return code is actually inverted.

Fix it.
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 587e1d43
......@@ -331,7 +331,7 @@ int cli_simple_run_command_list(char *cmd, int flag)
++next;
}
if (rcode == 0 && *line)
rcode = (cli_simple_run_command(line, 0) >= 0);
rcode = (cli_simple_run_command(line, 0) < 0);
return rcode;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册