summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-10-12 14:53:25 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:10 -0400
commit6278a46da3b39dee17d067a9634c3c68051e916e (patch)
treec4d1c31b3d3a019fd7631535988c855e42484250
parentef337c54c6d18d4c6ce0aef8f4f327d4cf42ae08 (diff)
bcachefs: fix a spurious gcc warning
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/alloc_foreground.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c
index 562c1317aa9e..920d9ff3c53b 100644
--- a/fs/bcachefs/alloc_foreground.c
+++ b/fs/bcachefs/alloc_foreground.c
@@ -207,7 +207,7 @@ struct open_bucket *bch2_bucket_alloc(struct bch_fs *c, struct bch_dev *ca,
{
struct bucket_array *buckets;
struct open_bucket *ob;
- long bucket;
+ long bucket = 0;
spin_lock(&c->freelist_lock);