bcachefs: fix a spurious gcc warning
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 12 Oct 2018 18:53:25 +0000 (14:53 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:10 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_foreground.c

index 562c1317aa9e03bf9dcb34ece3e098aa26beac4d..920d9ff3c53bf0069ad4cf7b79b5348081c11b65 100644 (file)
@@ -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);