Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lu Fengqi and committed by
David Sterba
5a2cb25a 684572df

+1 -3
+1 -3
fs/btrfs/extent-tree.c
··· 5539 5539 return 0; 5540 5540 5541 5541 ret = reserve_metadata_bytes(root, block_rsv, num_bytes, flush); 5542 - if (!ret) { 5542 + if (!ret) 5543 5543 block_rsv_add_bytes(block_rsv, num_bytes, true); 5544 - return 0; 5545 - } 5546 5544 5547 5545 return ret; 5548 5546 }