common: command: Use command_ret_t enum values instead of values
authorMichal Simek <[email protected]>
Mon, 4 Jun 2018 11:29:49 +0000 (13:29 +0200)
committerMichal Simek <[email protected]>
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
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;
 }