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:
committed by
Wolfgang Denk
parent
7fed89e00e
commit
bdf8e34b93
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user