From: Filipe Manana Date: Tue, 20 Jan 2026 20:01:31 +0000 (+0000) Subject: btrfs: remove out_failed label in find_lock_delalloc_range() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb09b9a4917cb5f040dbce66c236c9adae2eeaea;p=thirdparty%2Fkernel%2Flinux.git btrfs: remove out_failed label in find_lock_delalloc_range() There is no point in having the label since all it does is return the value in the 'found' variable. Instead make every goto return directly and remove the label. Reviewed-by: Johannes Thumshirn Signed-off-by: Filipe Manana Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index dfc17c2922179..3df399dc88567 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -440,8 +440,7 @@ again: loops = 1; goto again; } else { - found = false; - goto out_failed; + return false; } } @@ -461,7 +460,7 @@ again: } *start = delalloc_start; *end = delalloc_end; -out_failed: + return found; }