]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/cli_simple.c
Correct return code from builtin_run_command_list()
[karo-tx-uboot.git] / common / cli_simple.c
index 413c2eb89ec26fb5d68522ac33e0eddbf679dee2..49d58339286deb0ba5ca3e49708b850fcb1c0391 100644 (file)
@@ -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;
 }