summaryrefslogtreecommitdiffstats
path: root/commands/go.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/go.c')
-rw-r--r--commands/go.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/go.c b/commands/go.c
index 627f21e938..82a20d7f71 100644
--- a/commands/go.c
+++ b/commands/go.c
@@ -36,10 +36,8 @@ static int do_go (cmd_tbl_t *cmdtp, int argc, char *argv[])
int rcode = 1;
int fd = -1;
- if (argc < 2) {
- u_boot_cmd_usage(cmdtp);
- return 1;
- }
+ if (argc < 2)
+ return COMMAND_ERROR_USAGE;
if (!isdigit(*argv[1])) {
fd = open(argv[1], O_RDONLY);