From 6278a46da3b39dee17d067a9634c3c68051e916e Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 12 Oct 2018 14:53:25 -0400 Subject: [PATCH] bcachefs: fix a spurious gcc warning Signed-off-by: Kent Overstreet --- fs/bcachefs/alloc_foreground.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c index 562c1317aa9e0..920d9ff3c53bf 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); -- 2.30.2