]> git.baikalelectronics.ru Git - kernel.git/commit
jffs2: drop null test before destroy functions
authorJulia Lawall <julia.lawall@lip6.fr>
Sun, 13 Sep 2015 12:15:29 +0000 (14:15 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 22 Sep 2015 00:04:57 +0000 (17:04 -0700)
commit6bf540a9631ab551bd671a4b6d3d6570465f7d90
tree5f4bd6f55da07c90ea0049d04849a0f549c5984f
parent44abcbfb413ec58b8bd84b15fbdcf94564fde165
jffs2: 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: Brian Norris <computersforpeace@gmail.com>
fs/jffs2/malloc.c