common: command: Use command_ret_t enum values instead of values
authorMichal Simek <michal.simek@xilinx.com>
Mon, 4 Jun 2018 11:29:49 +0000 (13:29 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 19 Jul 2018 08:49:53 +0000 (10:49 +0200)
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>
common/command.c

index 52d47c133c3c4a8ead52891150a8847ea9ef1759..a4a8dc601acbc0c000e610f6a7638be99efff500 100644 (file)
@@ -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;
 }