btrfs: simplify return logic at check_committed_ref()
authorFilipe Manana <fdmanana@suse.com>
Mon, 9 Dec 2024 16:24:30 +0000 (16:24 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:16 +0000 (14:53 +0100)
commitadf7da3f261cee646a488d46f2086d6e98e72f57
tree3b2be9f69476d6bb5378aa527709d8612850422e
parent78cdfba85df90fe0eb507f2fe86eba7c8f51fe4c
btrfs: simplify return logic at check_committed_ref()

Instead of setting the value to return in a local variable 'ret' and then
jumping into a label named 'out' that does nothing but return that value,
simplify everything by getting rid of the label and directly returning a
value.

Reviewed-by: Qu Wenruo <wqu@suse.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