summaryrefslogtreecommitdiffstats
path: root/commands/rm.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/rm.c')
-rw-r--r--commands/rm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/rm.c b/commands/rm.c
index f8a84f3eab..d211718f5f 100644
--- a/commands/rm.c
+++ b/commands/rm.c
@@ -28,10 +28,8 @@ static int do_rm (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 (unlink(argv[i])) {