Tag: 6f65985e2636c0b170eade6a72d216632f065e26

dm: drop NULL test before kmem_cache_destroy() and mempool_destroy()

Author: Julia Lawall <Julia.Lawall@lip6.fr> Remove DM’s unneeded NULL tests before calling these destroy functions, now that they check for NULL, thanks to these v4.3 commits: 3942d2991 (“mm/slab_common: allow NULL cache pointer in kmem_cache_destroy()”) 4e3ca3e03 (“mm/mempool: allow NULL `pool’ pointer in mempool_destroy()”) The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression …

Continue reading