]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: send: simplify return logic from record_new_ref()
authorFilipe Manana <fdmanana@suse.com>
Tue, 18 Feb 2025 15:49:11 +0000 (15:49 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:46 +0000 (20:35 +0100)
commitde6d3a5b78757a462ebcebdcbb52ffce7dd61c70
treeb2c775cd7539df211013e17ccdf103d9271f72ca
parent39a1c41fa67eef31ba156688444cffa630f910f6
btrfs: send: simplify return logic from record_new_ref()

There is no need to have an 'out' label and jump into it since there are
no resource cleanups to perform (release locks, free memory, etc), so
make this simpler by removing the label and goto and instead return
directly.

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/send.c