]> Gentwo Git Trees - linux/.git/commit
btrfs: remove pointless label and goto from unpin_extent_range()
authorFilipe Manana <fdmanana@suse.com>
Mon, 20 Oct 2025 15:08:50 +0000 (16:08 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Nov 2025 21:16:23 +0000 (22:16 +0100)
commit8b6e1f5dcef97c8336a011c52384c0eb39691a43
treeb44aade50f7b466f95286cc26d5b0a6950bac1d7
parent36574363b75c6adf4642dc5f33b2a33870c8da3c
btrfs: remove pointless label and goto from unpin_extent_range()

There's no need to have an 'out' label and jump there in case we can
not find a block group. We can simply return directly since there are no
resources to release, removing the need for the label and the 'ret'
variable.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c