From: Simon Glass Date: Sat, 31 Mar 2012 00:30:57 -0700 Subject: [U-Boot] [PATCH v3 3/4] sandbox: Use the new run_command() In-Reply-To: <1333179058-19598-1-git-send-email-sjg@chromium.org> References: <1333179058-19598-1-git-send-email-sjg@chromium.org> Message-ID: <1333179058-19598-3-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Now that run_command() handles both parsers, clean up sandbox to use it. This fixes a build error. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to clean up sandbox's run_command() usage arch/sandbox/cpu/start.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index 6c3e8eb..7603bf9 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); } -- 1.7.7.3