]> git.sur5r.net Git - u-boot/commitdiff
sandbox: Use the new run_command()
authorSimon Glass <sjg@chromium.org>
Fri, 30 Mar 2012 21:30:57 +0000 (21:30 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 23 Apr 2012 20:53:54 +0000 (22:53 +0200)
Now that run_command() handles both parsers, clean up sandbox to use it.
This fixes a build error.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
arch/sandbox/cpu/start.c

index 6c3e8eb379ea8c5f456ba56f913173b91b7c5c42..7603bf90089adb3603b6e0b355cf915d7ef43080 100644 (file)
@@ -90,13 +90,7 @@ int sandbox_main_loop_init(void)
 
        /* Execute command if required */
        if (state->cmd) {
-               /* TODO: redo this when cmd tidy-up series lands */
-#ifdef CONFIG_SYS_HUSH_PARSER
                run_command(state->cmd, 0);
-#else
-               parse_string_outer(state->cmd, FLAG_PARSE_SEMICOLON |
-                                   FLAG_EXIT_FROM_LOOP);
-#endif
                os_exit(state->exit_type);
        }