]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ecryptfs: drop null test before destroy functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 13 Sep 2015 12:15:21 +0000 (14:15 +0200)
committerTyler Hicks <tyhicks@canonical.com>
Tue, 15 Sep 2015 14:44:44 +0000 (09:44 -0500)
commit933c32fe0e42b86d9bc5779401c3ce93d56bd231
tree44170f1357a616e43a1ceb55f5d353aa224ffda1
parentd25ed277fbd4c20247286fda2014ae6a2b88316b
ecryptfs: 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: Tyler Hicks <tyhicks@canonical.com>
fs/ecryptfs/main.c