diff options
author | Simon Glass <sjg@chromium.org> | 2012-02-14 19:59:23 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-03-06 21:09:34 +0100 |
commit | bdf8e34b936e2b94990ab6ce8dd5463d14d173dd (patch) | |
tree | 1cd5822ee530eaba3b22fb6fcf50967c6fce6d19 /common/hush.c | |
parent | 7fed89e00e0836f7894f350716b3f182ee562760 (diff) |
Create a single cmd_call() function to handle command execution
We should aim for a single point of entry to the commands, whichever
parser is used.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/hush.c')
-rw-r--r-- | common/hush.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/common/hush.c b/common/hush.c index e8e24d7deab..6cb921d4f35 100644 --- a/common/hush.c +++ b/common/hush.c @@ -1679,13 +1679,10 @@ static int run_pipe_real(struct pipe *pi) rcode = x->function(child); #else /* OK - call function to do the command */ - - rcode = (cmdtp->cmd) -(cmdtp, flag,child->argc-i,&child->argv[i]); - if ( !cmdtp->repeatable ) + rcode = cmd_call(cmdtp, flag, child->argc-i, + &child->argv[i]); + if (!cmdtp->repeatable) flag_repeat = 0; - - #endif child->argv-=i; /* XXX restore hack so free() can work right */ #ifndef __U_BOOT__ |