summaryrefslogtreecommitdiffstats
path: root/commands/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/mount.c')
-rw-r--r--commands/mount.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/mount.c b/commands/mount.c
index 54260e230f..530bd8ca1b 100644
--- a/commands/mount.c
+++ b/commands/mount.c
@@ -48,10 +48,8 @@ static int do_mount (cmd_tbl_t *cmdtp, int argc, char *argv[])
return 0;
}
- if (argc != 4) {
- u_boot_cmd_usage(cmdtp);
- return 1;
- }
+ if (argc != 4)
+ return COMMAND_ERROR_USAGE;
if ((ret = mount(argv[1], argv[2], argv[3]))) {
perror("mount");