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
@ -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…
Reference in New Issue
Block a user