]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove pointless out labels from disk-io.c
authorFilipe Manana <fdmanana@suse.com>
Tue, 20 Jan 2026 19:50:03 +0000 (19:50 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:56:21 +0000 (07:56 +0100)
commit3ca4f9d0963e80435c7b69e2a8fd2b683085a3e6
tree6f41dcbf314ed002fdc9607cbde76192b565c645
parentb3acb158ea1a2c9deb1bbff8360001a6a179dc9b
btrfs: remove pointless out labels from disk-io.c

Some functions (btrfs_validate_extent_buffer() and
btrfs_start_pre_rw_mount()) 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/disk-io.c