diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-06-04 13:29:49 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-07-19 10:49:53 +0200 |
commit | 3723324042ec92739d802604558a3ebe3d5616dc (patch) | |
tree | ba57fe1ed6bd1a02724b07e489dcf239b95cf87d /common | |
parent | 24e2b20132a9ecba851e0eadd312528a7307e8a2 (diff) | |
download | u-boot-3723324042ec92739d802604558a3ebe3d5616dc.tar.gz |
common: command: Use command_ret_t enum values instead of values
Use enum command_ret_t types in cmd_process_error().
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromum.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/command.c b/common/command.c index 52d47c133c..a4a8dc601a 100644 --- a/common/command.c +++ b/common/command.c @@ -549,8 +549,8 @@ int cmd_process_error(cmd_tbl_t *cmdtp, int err) { if (err) { printf("Command '%s' failed: Error %d\n", cmdtp->name, err); - return 1; + return CMD_RET_FAILURE; } - return 0; + return CMD_RET_SUCCESS; } |