Tag: e1305df1283cbe1aa57093f8766b2dfe650ed5ff

jffs2: drop null test before destroy functions

Author: Julia Lawall <julia.lawall@lip6.fr> Remove unneeded NULL test. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; @@ -if (x != NULL) \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x); // Signed-off-by: Julia Lawall Signed-off-by: Brian Norris — fs/jffs2/malloc.c | 27 +++++++++—————— 1 file changed, 9 insertions(+), 18 deletions(-)   diff –git a/fs/jffs2/malloc.c b/fs/jffs2/malloc.c index b8fd651..ce11897 …

Lire la suite