Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21c580d8 authored by Sean Fu's avatar Sean Fu Committed by Theodore Ts'o
Browse files

ext4: remove NULL check before calling kmem_cache_destroy()



Signed-off-by: default avatarSean Fu <fxinrong@gmail.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 8bdd5b60
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -162,7 +162,6 @@ int __init ext4_init_es(void)

void ext4_exit_es(void)
{
	if (ext4_es_cachep)
	kmem_cache_destroy(ext4_es_cachep);
}

+1 −2
Original line number Diff line number Diff line
@@ -2537,7 +2537,6 @@ static void ext4_groupinfo_destroy_slabs(void)
	int i;

	for (i = 0; i < NR_GRPINFO_CACHES; i++) {
		if (ext4_groupinfo_caches[i])
		kmem_cache_destroy(ext4_groupinfo_caches[i]);
		ext4_groupinfo_caches[i] = NULL;
	}