summaryrefslogtreecommitdiffstats
path: root/commands/timeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/timeout.c')
-rw-r--r--commands/timeout.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/timeout.c b/commands/timeout.c
index 3fa687c393..dbf17a7906 100644
--- a/commands/timeout.c
+++ b/commands/timeout.c
@@ -58,10 +58,8 @@ static int do_timeout(cmd_tbl_t *cmdtp, int argc, char *argv[])
}
}
- if (optind == argc) {
- u_boot_cmd_usage(cmdtp);
- return 1;
- }
+ if (optind == argc)
+ return COMMAND_ERROR_USAGE;
timeout = simple_strtoul(argv[optind], NULL, 0);