]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ecryptfs/main.c
Merge remote-tracking branch 'crypto/master'
[karo-tx-linux.git] / fs / ecryptfs / main.c
index 8b0b4a73116d07f354b45237e62662961594fa0d..5fe2cdb4898806e6e00ec95e88a5d19821a293ae 100644 (file)
@@ -738,8 +738,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));
        }
 }