bcachefs: Fix a spurious gcc warning
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 22 Aug 2019 20:34:59 +0000 (16:34 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:25 +0000 (17:08 -0400)
*i is used as an output parameter, but gcc isn't noticing that. Oh well.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_update_leaf.c

index 1e631dc8ff7c02f061e78af1f96b6e2894276b75..66b12e55d9465fede8b799146aa97083c1920f3b 100644 (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;