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: Thomas Betker <thomas.betker@rohde-schwarz.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
1d43bfd2d5
commit
52715f8931
|
@ -295,7 +295,7 @@ void cli_simple_loop(void)
|
||||||
if (len == -1)
|
if (len == -1)
|
||||||
puts("<INTERRUPT>\n");
|
puts("<INTERRUPT>\n");
|
||||||
else
|
else
|
||||||
rc = run_command(lastcommand, flag);
|
rc = run_command_repeatable(lastcommand, flag);
|
||||||
|
|
||||||
if (rc <= 0) {
|
if (rc <= 0) {
|
||||||
/* invalid command or not repeatable, forget it */
|
/* 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)
|
if (len == -1)
|
||||||
printf ("<INTERRUPT>\n");
|
printf ("<INTERRUPT>\n");
|
||||||
else
|
else
|
||||||
rc = run_command(lastcommand, flag);
|
rc = run_command_repeatable(lastcommand, flag);
|
||||||
|
|
||||||
if (rc <= 0) {
|
if (rc <= 0) {
|
||||||
/* invalid command or not repeatable, forget it */
|
/* invalid command or not repeatable, forget it */
|
||||||
|
|
Loading…
Reference in New Issue