]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove pointless out labels from inode.c
authorFilipe Manana <fdmanana@suse.com>
Tue, 20 Jan 2026 19:55:54 +0000 (19:55 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:56:21 +0000 (07:56 +0100)
commit47c9dbc791e0bfb4ed6b0ce866f9fc848db39e6c
tree1dcdf9182f7b5ec667f186a299dcb5801bef8fe5
parent46099eaef3716ea31557c5312ee69460b0c57c0c
btrfs: remove pointless out labels from inode.c

Some functions (insert_inline_extent() and insert_reserved_file_extent())
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/inode.c