diff options
Diffstat (limited to 'commands/crc.c')
-rw-r--r-- | commands/crc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/crc.c b/commands/crc.c index 008cbb845f..7ac69c60f9 100644 --- a/commands/crc.c +++ b/commands/crc.c @@ -53,10 +53,8 @@ static int do_crc (cmd_tbl_t *cmdtp, int argc, char *argv[]) } } - if (!filegiven && optind == argc) { - u_boot_cmd_usage(cmdtp); - return 1; - } + if (!filegiven && optind == argc) + return COMMAND_ERROR_USAGE; if (optind < argc) { if (parse_area_spec(argv[optind], &start, &size)) { |