btrfs-progs: cleanup dead return after usage() for fi-disk_usage
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Thu, 6 Mar 2014 03:36:46 +0000 (11:36 +0800)
committerDavid Sterba <dsterba@suse.cz>
Thu, 4 Dec 2014 15:48:09 +0000 (16:48 +0100)
The usage() calls exit() internally, so remove the return after it.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-fi-disk_usage.c

index 5274a73..edada5b 100644 (file)
@@ -494,10 +494,8 @@ int cmd_filesystem_df(int argc, char **argv)
                }
        }
 
-       if (check_argc_min(argc - optind, 1)) {
+       if (check_argc_min(argc - optind, 1))
                usage(cmd_filesystem_df_usage);
-               return 21;
-       }
 
        for (i = optind; i < argc ; i++) {
                int r, fd;
@@ -914,10 +912,8 @@ int cmd_filesystem_disk_usage(int argc, char **argv)
                }
        }
 
-       if (check_argc_min(argc - optind, 1)) {
+       if (check_argc_min(argc - optind, 1))
                usage(cmd_filesystem_disk_usage_usage);
-               return 21;
-       }
 
        for (i = optind; i < argc ; i++) {
                int r, fd;
@@ -1050,10 +1046,8 @@ int cmd_device_disk_usage(int argc, char **argv)
                }
        }
 
-       if (check_argc_min(argc - optind, 1)) {
+       if (check_argc_min(argc - optind, 1))
                usage(cmd_device_disk_usage_usage);
-               return 21;
-       }
 
        for (i = optind; i < argc ; i++) {
                int r, fd;