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-08-13 12:31:40 -06:00
2015-08-12 11:32:21 -04:00
2015-10-02 17:24:13 +10:00
2015-04-22 07:59:39 +10:00
2015-07-29 08:55:15 -06:00
2015-05-29 14:19:06 -04:00
2013-11-23 22:33:55 -08:00
2015-10-31 19:06:00 -04:00
2014-01-14 23:23:03 -05:00
2014-01-14 23:23:04 -05:00
2014-11-10 15:25:30 -05:00
2015-06-11 17:13:00 -04:00
2015-06-11 17:13:00 -04:00
2015-05-29 14:19:04 -04:00
2015-06-11 17:13:01 -04:00
2015-08-12 11:27:29 -04:00
2015-08-12 11:32:19 -04:00
2014-01-16 13:44:11 -05:00
2015-06-11 17:13:01 -04:00
2015-10-31 19:06:00 -04:00
2015-10-31 19:06:00 -04:00
2015-08-12 11:32:21 -04:00
2015-08-13 12:31:57 -06:00
2012-07-27 15:07:59 +01:00
2010-08-12 04:13:51 +01:00
2015-10-31 19:05:59 -04:00
2015-10-31 19:06:00 -04:00
2015-08-05 10:35:49 -07:00
2013-08-23 09:02:13 -04:00
2015-10-31 19:05:59 -04:00
2015-10-31 19:06:00 -04:00
2015-04-15 12:10:20 -04:00
2009-09-04 20:40:34 +01: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
2008-10-10 13:36:58 +01:00
2011-10-31 19:31:18 -04:00
2009-06-22 10:12:27 +01:00
2012-03-28 18:41:26 +01:00
2015-09-02 16:35:26 -07:00
2015-08-13 12:31:57 -06:00
2015-10-31 19:06:00 -04:00
2012-03-28 18:41:26 +01:00
2012-03-28 18:41:26 +01:00
2015-08-12 11:32:21 -04:00
2011-10-31 19:31:19 -04:00
2015-09-02 16:35:26 -07:00
2015-08-18 17:20:03 -04:00
2015-06-17 12:40:40 -04:00
2015-09-02 16:35:26 -07:00
2015-10-31 19:05:59 -04:00
2015-04-15 12:10:17 -04:00
2015-08-19 14:26:02 -07:00
2015-02-09 13:06:47 -05:00
2015-08-12 10:42:51 -04:00
2015-06-11 17:13:04 -04:00
2015-09-13 21:32:10 -04:00
2011-10-31 19:31:19 -04:00
2015-10-31 19:05:59 -04:00
2015-07-29 08:55:15 -06:00
2015-10-31 19:06:00 -04:00
2015-08-13 12:31:57 -06:00
2015-07-29 08:55:15 -06:00
2015-09-11 18:15:18 -07:00
2015-08-13 12:31:57 -06:00
2011-10-11 16:48:54 +11:00
2015-06-11 17:12:59 -04:00
2015-08-31 19:43:17 +02:00
2015-07-24 13:37:59 +10:00
2015-10-02 17:23:44 +10:00
2015-08-13 12:31:57 -06:00
2015-10-02 17:23:44 +10:00
2011-10-11 16:48:57 +11:00
2015-10-02 17:23:44 +10:00
2015-08-13 12:31:57 -06:00
2015-10-02 17:23:44 +10:00
2015-08-31 19:43:23 +02:00
2015-10-02 17:23:44 +10:00
2015-08-31 19:43:59 +02:00
2015-10-02 17:23:44 +10:00
2015-08-31 19:43:45 +02:00