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