From: Kent Overstreet Date: Wed, 5 Jan 2022 00:45:39 +0000 (-0500) Subject: bcachefs: Fix an uninitialized variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9714baaa52d63416d1f7577b630831fc885bfa1f;p=linux.git bcachefs: Fix an uninitialized variable Only userspace builds were complaining about it, oddly enough. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index c659a5a95b63b..4602f581198ea 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -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;