]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: send: simplify return logic from __get_cur_name_and_parent()
authorFilipe Manana <fdmanana@suse.com>
Mon, 10 Feb 2025 11:38:47 +0000 (11:38 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:45 +0000 (20:35 +0100)
commitdbee3fc55ac156006c47e71de3ed41a2307690c3
treea32313a194345f233ba0c093ab932e81f9563930
parenta77749b3e21813566cea050bbb3414ae74562eba
btrfs: send: simplify return logic from __get_cur_name_and_parent()

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