summaryrefslogtreecommitdiff
path: root/common/main.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/main.c
parent7fed89e00e0836f7894f350716b3f182ee562760 (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/main.c')
-rw-r--r--common/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/main.c b/common/main.c
index 637da2b4d34..6a3eac28aa7 100644
--- a/common/main.c
+++ b/common/main.c
@@ -1370,9 +1370,8 @@ static int builtin_run_command(const char *cmd, int flag)
#endif
/* OK - call function to do the command */
- if ((cmdtp->cmd) (cmdtp, flag, argc, argv) != 0) {
+ if (cmd_call(cmdtp, flag, argc, argv) != 0)
rc = -1;
- }
repeatable &= cmdtp->repeatable;