bcachefs: Fix an uninitialized variable

Only userspace builds were complaining about it, oddly enough.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
Kent Overstreet 2022-01-04 19:45:39 -05:00 committed by Kent Overstreet
parent 9b6e2f1e70
commit 9714baaa52

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