summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-07-16 11:20:53 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2021-07-16 11:20:53 -0700
commit45312bd762d37bfc7dda6de8a70bb5604e899015 (patch)
treed6d4be35bdc49bc8e8c6bebdc72e6fce338e88c3 /fs
parent786cb0a2f9bba267c8a80caf906b94c76d18f7e8 (diff)
parent2f53d15cf95824ed320abed3c33759b8b21aca15 (diff)
Merge tag 'zonefs-5.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs
Pull zonefs fix from Damien Le Moal: "A single patch to remove an unnecessary NULL bio check (from Xianting)" * tag 'zonefs-5.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs: zonefs: remove redundant null bio check
Diffstat (limited to 'fs')
-rw-r--r--fs/zonefs/super.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c
index dbf03635869c..70055d486bf7 100644
--- a/fs/zonefs/super.c
+++ b/fs/zonefs/super.c
@@ -705,9 +705,6 @@ static ssize_t zonefs_file_dio_append(struct kiocb *iocb, struct iov_iter *from)
return 0;
bio = bio_alloc(GFP_NOFS, nr_pages);
- if (!bio)
- return -ENOMEM;
-
bio_set_dev(bio, bdev);
bio->bi_iter.bi_sector = zi->i_zsector;
bio->bi_write_hint = iocb->ki_hint;