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: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Lu Fengqi 2018-08-04 21:10:56 +08:00 committed by David Sterba
parent 684572df94
commit 5a2cb25ab9
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}