]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
btrfs: remove out_failed label in find_lock_delalloc_range()
authorFilipe Manana <fdmanana@suse.com>
Tue, 20 Jan 2026 20:01:31 +0000 (20:01 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:56:22 +0000 (07:56 +0100)
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 <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/extent_io.c

index dfc17c29221797b67cd3162533812687dcf33d18..3df399dc88567b1bc41cdcca5b812336ecb442d3 100644 (file)
@@ -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;
 }