summaryrefslogtreecommitdiffstats
path: root/commands/rmdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/rmdir.c')
-rw-r--r--commands/rmdir.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/rmdir.c b/commands/rmdir.c
index aaa7f80a72..2d8d5162b2 100644
--- a/commands/rmdir.c
+++ b/commands/rmdir.c
@@ -7,10 +7,8 @@ static int do_rmdir (cmd_tbl_t *cmdtp, int argc, char *argv[])
{
int i = 1;
- if (argc < 2) {
- u_boot_cmd_usage(cmdtp);
- return 1;
- }
+ if (argc < 2)
+ return COMMAND_ERROR_USAGE;
while (i < argc) {
if (rmdir(argv[i])) {