diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-21 19:34:48 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:28 -0400 |
commit | fd1e9c69959ec2dd0946f3d2285548c87f9d6ea3 (patch) | |
tree | ebf1e6402cefd8eeee64f65f5211402d31a049e8 /fs/bcachefs/io.c | |
parent | 3756111d138b6c5983d0c7cc2de12a7ec3d1e3d4 (diff) |
bcachefs: Fix an unitialized var warning in userspace
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/io.c')
-rw-r--r-- | fs/bcachefs/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c index c9204cab055d..2cc56979fcb3 100644 --- a/fs/bcachefs/io.c +++ b/fs/bcachefs/io.c @@ -1141,7 +1141,7 @@ static void __bch2_write(struct closure *cl) struct bch_write_op *op = container_of(cl, struct bch_write_op, cl); struct bch_fs *c = op->c; struct write_point *wp; - struct bio *bio; + struct bio *bio = NULL; bool skip_put = true; unsigned nofs_flags; int ret; |