]> 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)
commit5d6e7c1c427c43a052838949406d02fab1ff1dee
tree42a7fa10acb54d5ddc01c3005ae870741b736fd6
parentc3d7a20a78ea6e590937d63283883eab38e81578
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