]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/block/aoe/aoedev: NULL check is not needed for mempool_destroy
authorzhong jiang <zhongjiang@huawei.com>
Wed, 8 Aug 2018 15:00:35 +0000 (23:00 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Aug 2018 15:17:20 +0000 (09:17 -0600)
commit36bdfee01b1fca78eeeab4e78221f36b5955aef2
tree42a7fa10acb54d5ddc01c3005ae870741b736fd6
parent4ce6aa87c80d7a9478bfcd25ba23067606802b3c
drivers/block/aoe/aoedev: NULL check is not needed for mempool_destroy

mempool_destroy has taken the null pointer into account. So it is safe
to remove the null check.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/aoe/aoedev.c