]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Use run_command_repeatable()
authorThomas Betker <thomas.betker@freenet.de>
Thu, 5 Jun 2014 18:07:58 +0000 (20:07 +0200)
committerTom Rini <trini@ti.com>
Wed, 11 Jun 2014 20:25:47 +0000 (16:25 -0400)
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>
common/cli_simple.c
common/cmd_bedbug.c

index 49d58339286deb0ba5ca3e49708b850fcb1c0391..353ceeb7349ac144521a3838f5d66cbc2d479299 100644 (file)
@@ -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 */
index bdcf712d111077a5b12222296686b403b0fc8dee..57a8a3f2fe352177fa8edefd629ea7ac57bfb5f7 100644 (file)
@@ -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 */