]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
UBI: drop null test before destroy functions
authorJulia Lawall <julia.lawall@lip6.fr>
Sun, 13 Sep 2015 12:15:16 +0000 (14:15 +0200)
committerRichard Weinberger <richard@nod.at>
Sat, 3 Oct 2015 18:36:10 +0000 (20:36 +0200)
commitf9a113d65fa56d8e8e662e37ec2fbeac0d52aa01
treec5a5c13f348993062ce04bfc968306dcc355de3d
parent86f6e454e6371003caecee3b4aa55de3e8eacbdd
UBI: 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: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/attach.c