]> git.baikalelectronics.ru Git - kernel.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>
Mon, 20 Jun 2016 15:02:22 +0000 (10:02 -0500)
commit48e4fc47cc942745895cb3e60f8ba7d20afa5ed1
treec4ef593372802985b325d9726289cc54d6c96b63
parentfef9870bc2480dcb6423cd64866278a1a0a14a43
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