]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cli_simple.c
fdt_support: delete force argument of fdt_chosen()
[karo-tx-uboot.git] / common / cli_simple.c
index 413c2eb89ec26fb5d68522ac33e0eddbf679dee2..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 */
@@ -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;
 }