Message ID | 20230813094555.106052-3-christoph@c8h4.io (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs-progs: implement json output for subvolume subcommands | expand |
diff --git a/cmds/subvolume.c b/cmds/subvolume.c index 0691157c..a5423759 100644 --- a/cmds/subvolume.c +++ b/cmds/subvolume.c @@ -1466,11 +1466,6 @@ static int cmd_subvolume_show(const struct cmd_struct *cmd, int argc, char **arg btrfs_util_destroy_subvolume_iterator(iter); ret = btrfs_qgroup_query(fd, subvol.id, &stats); - if (ret == -ENOTTY) { - /* Quotas not enabled */ - ret = 0; - goto out; - } if (ret == -ENOTTY) { /* Quota information not available, not fatal */ pr_verbose(LOG_DEFAULT, "\tQuota group:\t\tn/a\n");
The exact same check is repeated here, with the second being dead code. Keep the second instance, as that informs the user what is happening. Signed-off-by: Christoph Heiss <christoph@c8h4.io> --- cmds/subvolume.c | 5 ----- 1 file changed, 5 deletions(-)