]> 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)
commita57139d0de932c040a9c416b2369920b39a2a108
treec246c05286693c2fd06528a59ffe883e06b2706e
parente22802c83dd72c6183e3e8b6ea6da41581c72e6e
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