bcachefs: Fix an uninitialized variable
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 5 Jan 2022 00:45:39 +0000 (19:45 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:22 +0000 (17:09 -0400)
Only userspace builds were complaining about it, oddly enough.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/journal_io.c

index c659a5a95b63b79c12cdebf56ed1028c7aac4d93..4602f581198eadf28be03830c7c6551fb9c286f6 100644 (file)
@@ -898,7 +898,7 @@ static void bch2_journal_read_device(struct closure *cl)
        struct journal_read_buf buf = { NULL, 0 };
        u64 min_seq = U64_MAX;
        unsigned i;
-       int ret;
+       int ret = 0;
 
        if (!ja->nr)
                goto out;