summaryrefslogtreecommitdiffstats
path: root/common/hush.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-02-14 19:59:23 +0000
committerWolfgang Denk <wd@denx.de>2012-03-06 21:09:34 +0100
commitbdf8e34b936e2b94990ab6ce8dd5463d14d173dd (patch)
tree1cd5822ee530eaba3b22fb6fcf50967c6fce6d19 /common/hush.c
parent7fed89e00e0836f7894f350716b3f182ee562760 (diff)
downloadblackbird-obmc-uboot-bdf8e34b936e2b94990ab6ce8dd5463d14d173dd.tar.gz
blackbird-obmc-uboot-bdf8e34b936e2b94990ab6ce8dd5463d14d173dd.zip
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.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/common/hush.c b/common/hush.c
index e8e24d7dea..6cb921d4f3 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__
OpenPOWER on IntegriCloud