]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove pointless out labels from extent-tree.c
authorFilipe Manana <fdmanana@suse.com>
Tue, 20 Jan 2026 19:52:10 +0000 (19:52 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:56:21 +0000 (07:56 +0100)
commitea8f9210050136bdd14f5e32b04cd01c8bd5c0ca
tree472259c712d10aea6ccdccfc468fb2ba0be58bc0
parent3ca4f9d0963e80435c7b69e2a8fd2b683085a3e6
btrfs: remove pointless out labels from extent-tree.c

Some functions (lookup_extent_data_ref(), __btrfs_mod_ref() and
btrfs_free_tree_block()) have an 'out' label that does nothing but
return, making it pointless. Simplify this by removing the label and
returning instead of gotos plus setting 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