On Wed, Aug 29, 2018 at 10:04:04PM +0800, Chengguang Xu wrote: > kmem_cache_destroy()/mempool_destroy() can handle NULL pointer > correctly, so there is no need to check NULL pointer before calling > kmem_cache_destroy()/mempool_destroy(). Meanwhile, because this > is in the error case of init function, also remove unnecessary > NULL assignment. Looks good. Reviewed-by: Greg Edwards <gedwards@xxxxxxx>