drivers/block/aoe/aoedev: NULL check is not needed for mempool_destroy
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/block/aoe/aoedev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/block/aoe/aoedev.c +2 -2
@@ -284,8 +284,8 @@ e = t + d->ntargets;for (; t < e && *t; t++)freetgt (d, *t); -if (d->bufpool) -mempool_destroy (d->bufpool); + +mempool_destroy (d->bufpool);skbpoolfree (d);minor_free (d->sysminor);
Signature · 1 line
1.7.12.4
Quoted 2 lines · zhong jiang
mempool_destroyhas taken the null pointer into account. So it is safe to remove the null check.
Applied, thanks.
Signature · 1 line
Jens Axboe