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)
commit4078def82f352cf5007691635da290a109511bc5
treec246c05286693c2fd06528a59ffe883e06b2706e
parent4b14a5c5d57f4fd6929db3427ba4d7c3775b4680
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