summaryrefslogtreecommitdiff
path: root/common/cmd_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_time.c')
-rw-r--r--common/cmd_time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_time.c b/common/cmd_time.c
index c937ae4af3..6dbdbbfbe7 100644
--- a/common/cmd_time.c
+++ b/common/cmd_time.c
@@ -38,7 +38,7 @@ static int run_command_and_time_it(int flag, int argc, char * const argv[],
return 1;
}
if (argc > cmdtp->maxargs)
- return cmd_usage(cmdtp);
+ return CMD_RET_USAGE;
/*
* TODO(clchiou): get_timer_masked() is only defined in certain ARM
@@ -77,7 +77,7 @@ static int do_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
int retval = 0;
if (argc == 1)
- return cmd_usage(cmdtp);
+ return CMD_RET_USAGE;
retval = run_command_and_time_it(0, argc - 1, argv + 1, &cycles);
report_time(cycles);