summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-01-20 20:01:31 +0000
committerDavid Sterba <dsterba@suse.com>2026-02-03 07:56:22 +0100
commitbb09b9a4917cb5f040dbce66c236c9adae2eeaea (patch)
treeefd988cd42fe461c681bf4450cf3aeb6a71695a5
parent2efcd25a7638dd217e2fea01107416e24a2d1935 (diff)
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 <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>
-rw-r--r--fs/btrfs/extent_io.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index dfc17c292217..3df399dc8856 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;
}