Since bio_endio() will call bio_uninit() for us, we can remove it from current code path. Signed-off-by: Yufen Yu <yuyufen@xxxxxxxxxx> --- fs/block_dev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index 6cc4d4cfe0c2..7a63fc3ce8d9 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -299,8 +299,6 @@ __blkdev_direct_IO_simple(struct kiocb *iocb, struct iov_iter *iter, if (vecs != inline_vecs) kfree(vecs); - bio_uninit(&bio); - return ret; } -- 2.25.4