]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nandsim: drop null test before destroy functions
authorJulia Lawall <julia.lawall@lip6.fr>
Sun, 13 Sep 2015 12:14:54 +0000 (14:14 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 22 Sep 2015 00:04:50 +0000 (17:04 -0700)
commit4d802e0f4670e77e13491290573f989b17b8be12
treedcc27179658e39891af622d09bb8fcab568ff6e6
parent931c5e4665d56b6fd5a7cd18c0170d794dd558f9
mtd: nandsim: 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>
drivers/mtd/nand/nandsim.c