kmem_cache_destroy has taken null pointer into account. So it is safe to drop the null check before calling the function. Signed-off-by: zhong jiang <[email protected]> Signed-off-by: Jens Axboe <[email protected]>