1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

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>
This commit is contained in:
Simon Glass
2012-02-14 19:59:23 +00:00
committed by Wolfgang Denk
parent 7fed89e00e
commit bdf8e34b93
4 changed files with 28 additions and 8 deletions

View File

@@ -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;