提交 21c580d8 编写于 作者: S Sean Fu 提交者: Theodore Ts'o

ext4: remove NULL check before calling kmem_cache_destroy()

Signed-off-by: NSean Fu <fxinrong@gmail.com>
Signed-off-by: NTheodore Ts'o <tytso@mit.edu>
上级 8bdd5b60
...@@ -162,7 +162,6 @@ int __init ext4_init_es(void) ...@@ -162,7 +162,6 @@ int __init ext4_init_es(void)
void ext4_exit_es(void) void ext4_exit_es(void)
{ {
if (ext4_es_cachep)
kmem_cache_destroy(ext4_es_cachep); kmem_cache_destroy(ext4_es_cachep);
} }
......
...@@ -2537,7 +2537,6 @@ static void ext4_groupinfo_destroy_slabs(void) ...@@ -2537,7 +2537,6 @@ static void ext4_groupinfo_destroy_slabs(void)
int i; int i;
for (i = 0; i < NR_GRPINFO_CACHES; i++) { for (i = 0; i < NR_GRPINFO_CACHES; i++) {
if (ext4_groupinfo_caches[i])
kmem_cache_destroy(ext4_groupinfo_caches[i]); kmem_cache_destroy(ext4_groupinfo_caches[i]);
ext4_groupinfo_caches[i] = NULL; ext4_groupinfo_caches[i] = NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册