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>

authored by Julia Lawall and committed by Tyler Hicks c39341cf 33688abb

+1 -2
+1 -2
fs/ecryptfs/main.c
··· 738 struct ecryptfs_cache_info *info; 739 740 info = &ecryptfs_cache_infos[i]; 741 - if (*(info->cache)) 742 - kmem_cache_destroy(*(info->cache)); 743 } 744 } 745
··· 738 struct ecryptfs_cache_info *info; 739 740 info = &ecryptfs_cache_infos[i]; 741 + kmem_cache_destroy(*(info->cache)); 742 } 743 } 744