]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_bootm.c
Convert cmd_usage() calls in common to use a return value
[people/ms/u-boot.git] / common / cmd_bootm.c
index 6bfef6292f4a08b4d6db609cc24e2274ecc27c76..93045841f9e73fed2a5c04b5ceba5e52ce70d697 100644 (file)
@@ -493,12 +493,12 @@ int do_bootm_subcommand(cmd_tbl_t *cmdtp, int flag, int argc,
                }
        } else {
                /* Unrecognized command */
-               return cmd_usage(cmdtp);
+               return CMD_RET_USAGE;
        }
 
        if (images.state >= state) {
                printf("Trying to execute a command out of order\n");
-               return cmd_usage(cmdtp);
+               return CMD_RET_USAGE;
        }
 
        images.state |= state;