]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ecryptfs/main.c
Merge remote-tracking branch 'ecryptfs/next'
[karo-tx-linux.git] / fs / ecryptfs / main.c
index e25b6b06bacf2cf8719d76d06e6efb8a60bd78b8..83aa5aef93ee19678d6760e74360ee8cbf0ae5d1 100644 (file)
@@ -739,8 +739,7 @@ static void ecryptfs_free_kmem_caches(void)
                struct ecryptfs_cache_info *info;
 
                info = &ecryptfs_cache_infos[i];
-               if (*(info->cache))
-                       kmem_cache_destroy(*(info->cache));
+               kmem_cache_destroy(*(info->cache));
        }
 }