diff options
author | Gui Hecheng <guihc.fnst@cn.fujitsu.com> | 2014-03-06 11:36:46 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-12-04 16:48:09 +0100 |
commit | 07f114307fb3eab91007e0a07bd89d61e0ee371d (patch) | |
tree | 4e5a623490e2d9133485e70ee75c1c78df82f726 /cmds-fi-disk_usage.c | |
parent | 330903d4eec6d0d0bf25f7052ee10300d3791d0c (diff) |
btrfs-progs: cleanup dead return after usage() for fi-disk_usage
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>
Diffstat (limited to 'cmds-fi-disk_usage.c')
-rw-r--r-- | cmds-fi-disk_usage.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/cmds-fi-disk_usage.c b/cmds-fi-disk_usage.c index 5274a732..edada5bb 100644 --- a/cmds-fi-disk_usage.c +++ b/cmds-fi-disk_usage.c @@ -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; |