summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-03-30 21:30:57 +0000
committerWolfgang Denk <wd@denx.de>2012-04-23 22:53:54 +0200
commit61ddce07f8b96c5df7d00466b4da9edaecb0eff1 (patch)
treedaec6f50962003fd08af92af7bd51c0e4610e7cf
parent9e02a6b8e514a3256471a820cdb567668098fa22 (diff)
sandbox: Use the new run_command()
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>
-rw-r--r--arch/sandbox/cpu/start.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c
index 6c3e8eb379e..7603bf90089 100644
--- a/arch/sandbox/cpu/start.c
+++ b/arch/sandbox/cpu/start.c
@@ -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);
}