mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
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>
This commit is contained in:
parent
24e2b20132
commit
3723324042
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue