提交 37233240 编写于 作者: M Michal Simek

common: command: Use command_ret_t enum values instead of values

Use enum command_ret_t types in cmd_process_error().
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
Reviewed-by: NSimon Glass <sjg@chromum.org>
上级 24e2b201
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册