From: Kent Overstreet Date: Fri, 12 Oct 2018 18:53:25 +0000 (-0400) Subject: bcachefs: fix a spurious gcc warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6278a46da3b39dee17d067a9634c3c68051e916e;p=linux.git bcachefs: fix a spurious gcc warning Signed-off-by: Kent Overstreet --- 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);