]> git.baikalelectronics.ru Git - kernel.git/commit
block/bio: Remove null checks before mempool_destroy in bioset_free
authorTim Hansen <devtimhansen@gmail.com>
Fri, 6 Oct 2017 18:45:13 +0000 (14:45 -0400)
committerJens Axboe <axboe@kernel.dk>
Fri, 6 Oct 2017 19:03:14 +0000 (13:03 -0600)
commitc84305779920027e42a94fd65d6601d4e916800c
treec246c05286693c2fd06528a59ffe883e06b2706e
parent64efb226493da3c9519d551a02efc8501fedd3d3
block/bio: Remove null checks before mempool_destroy in bioset_free

This patch removes redundant checks for null values on bio_pool and
bvec_pool.

Found using make coccicheck M=block/ on linux-net tree on the
next-20170929 tag.

Signed-off-by: Tim Hansen <devtimhansen@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c