Commit 5a2cb25a authored by Lu Fengqi's avatar Lu Fengqi Committed by David Sterba

btrfs: remove a useless return statement in btrfs_block_rsv_add

Since ret must be 0 here, don't have to return.  No functional change
and code readability is not hurt.
Signed-off-by: default avatarLu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 684572df
......@@ -5539,10 +5539,8 @@ int btrfs_block_rsv_add(struct btrfs_root *root,
return 0;
ret = reserve_metadata_bytes(root, block_rsv, num_bytes, flush);
if (!ret) {
if (!ret)
block_rsv_add_bytes(block_rsv, num_bytes, true);
return 0;
}
return 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