diff options
Diffstat (limited to 'commands/sleep.c')
-rw-r--r-- | commands/sleep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/sleep.c b/commands/sleep.c index 955eb718d6..3c18a8694f 100644 --- a/commands/sleep.c +++ b/commands/sleep.c @@ -29,10 +29,8 @@ static int do_sleep (cmd_tbl_t *cmdtp, int argc, char *argv[]) uint64_t start; ulong delay; - if (argc != 2) { - printf ("Usage:\n%s\n", cmdtp->usage); - return 1; - } + if (argc != 2) + return COMMAND_ERROR_USAGE; delay = simple_strtoul(argv[1], NULL, 10); |