提交 52715f89 编写于 作者: T Thomas Betker 提交者: Tom Rini

Use run_command_repeatable()

Replace run_command() by run_command_repeatable() in places which
depend on the return code to indicate repeatability.
Signed-off-by: NThomas Betker <thomas.betker@rohde-schwarz.com>
Acked-by: NSimon Glass <sjg@chromium.org>
Tested-by: NSimon Glass <sjg@chromium.org>
上级 1d43bfd2
......@@ -295,7 +295,7 @@ void cli_simple_loop(void)
if (len == -1)
puts("<INTERRUPT>\n");
else
rc = run_command(lastcommand, flag);
rc = run_command_repeatable(lastcommand, flag);
if (rc <= 0) {
/* invalid command or not repeatable, forget it */
......
......@@ -238,7 +238,7 @@ void bedbug_main_loop (unsigned long addr, struct pt_regs *regs)
if (len == -1)
printf ("<INTERRUPT>\n");
else
rc = run_command(lastcommand, flag);
rc = run_command_repeatable(lastcommand, flag);
if (rc <= 0) {
/* invalid command or not repeatable, forget it */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册