Commit 5e8fb9b8 authored by Anand Jain's avatar Anand Jain Committed by David Sterba

btrfs: drop variable err in quick_update_accounting()

In quick_update_accounting() err is used as 2nd return value, which could
be achieved just with ret.
Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent acde0e86
...@@ -1536,18 +1536,15 @@ static int quick_update_accounting(struct btrfs_fs_info *fs_info, ...@@ -1536,18 +1536,15 @@ static int quick_update_accounting(struct btrfs_fs_info *fs_info,
{ {
struct btrfs_qgroup *qgroup; struct btrfs_qgroup *qgroup;
int ret = 1; int ret = 1;
int err = 0;
qgroup = find_qgroup_rb(fs_info, src); qgroup = find_qgroup_rb(fs_info, src);
if (!qgroup) if (!qgroup)
goto out; goto out;
if (qgroup->excl == qgroup->rfer) { if (qgroup->excl == qgroup->rfer) {
ret = 0; ret = __qgroup_excl_accounting(fs_info, dst, qgroup, sign);
err = __qgroup_excl_accounting(fs_info, dst, qgroup, sign); if (ret < 0)
if (err < 0) {
ret = err;
goto out; goto out;
} ret = 0;
} }
out: out:
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment