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 <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2019-08-22 16:34:59 -04:00 committed by Kent Overstreet
parent 16e671037a
commit d9b022fee6

View file

@ -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;