summaryrefslogtreecommitdiffstats
path: root/commands/mkdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/mkdir.c')
-rw-r--r--commands/mkdir.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/mkdir.c b/commands/mkdir.c
index a2c298240a..4d9bcb602b 100644
--- a/commands/mkdir.c
+++ b/commands/mkdir.c
@@ -43,10 +43,8 @@ static int do_mkdir (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;
while (optind < argc) {
if (parent)