]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nilfs2: drop null test before destroy functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 21 Oct 2015 22:03:54 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:54 +0000 (09:03 +1100)
commit4aaffcdde88c9f1af5de93097dda012a687a13e0
tree5cc9293336149b2422046a9f8951b68fcd2611fe
parentcebb768c984778e700e974a946eadb31daa21f77
nilfs2: drop null test before destroy functions

Remove unneeded NULL test.

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: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nilfs2/super.c