]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove pointless out labels from ioctl.c
authorFilipe Manana <fdmanana@suse.com>
Tue, 20 Jan 2026 11:25:31 +0000 (11:25 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:56:20 +0000 (07:56 +0100)
commit01f93271ed0218937bd6386d6d6deccd92621a38
tree72d6a432426fcdc63c30b4d4e0392fb7ec4f5f95
parent51b1fcf71c88c3c89e7dcf07869c5de837b1f428
btrfs: remove pointless out labels from ioctl.c

Some functions (__btrfs_ioctl_snap_create(), btrfs_ioctl_subvol_setflags()
and copy_to_sk()) 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 up 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/ioctl.c