From: Kent Overstreet Date: Thu, 22 Aug 2019 20:34:59 +0000 (-0400) Subject: bcachefs: Fix a spurious gcc warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d9b022fee69e7f1eea45317c882c65582481a263;p=linux.git bcachefs: Fix a spurious gcc warning *i is used as an output parameter, but gcc isn't noticing that. Oh well. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/btree_update_leaf.c b/fs/bcachefs/btree_update_leaf.c index 1e631dc8ff7c0..66b12e55d9465 100644 --- a/fs/bcachefs/btree_update_leaf.c +++ b/fs/bcachefs/btree_update_leaf.c @@ -857,7 +857,7 @@ int bch2_trans_commit(struct btree_trans *trans, unsigned flags) { struct bch_fs *c = trans->c; - struct btree_insert_entry *i; + struct btree_insert_entry *i = NULL; unsigned orig_mem_top = trans->mem_top; int ret = 0;