From: Michal Simek <michal.simek@xilinx.com>
Date: Mon, 4 Jun 2018 11:29:49 +0000 (+0200)
Subject: common: command: Use command_ret_t enum values instead of values
X-Git-Tag: v2025.01-rc5-pxa1908~3978^2~52
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/login.html?a=commitdiff_plain;h=3723324042ec92739d802604558a3ebe3d5616dc;p=u-boot.git

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>
---

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;
 }