Julia Lawall 6f65985e26 dm: drop NULL test before kmem_cache_destroy() and mempool_destroy()
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/)

// <smpl>
@@ expression x; @@
-if (x != NULL)
  \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2015-10-31 19:06:00 -04:00
..
2015-04-22 07:59:39 +10:00
2014-01-14 23:23:03 -05:00
2015-10-31 19:05:59 -04:00
2013-08-23 09:02:13 -04:00
2015-10-31 19:05:59 -04:00
2015-10-31 19:05:59 -04:00
2012-07-30 17:25:16 -07:00
2015-10-31 19:05:59 -04:00
2015-10-31 19:05:59 -04:00
2015-08-13 12:31:57 -06:00
2015-09-11 18:15:18 -07:00
2015-08-13 12:31:57 -06:00
2015-08-13 12:31:57 -06:00