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

Commit c1bd743e authored by Tim Hansen's avatar Tim Hansen Committed by Paolo Bonzini
Browse files

arch/x86: remove redundant null checks before kmem_cache_destroy



Remove redundant null checks before calling kmem_cache_destroy.

Found with make coccicheck M=arch/x86/kvm on linux-next tag
next-20170929.

Signed-off-by: default avatarTim Hansen <devtimhansen@gmail.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 8ad8182e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -5463,9 +5463,7 @@ static struct shrinker mmu_shrinker = {

static void mmu_destroy_caches(void)
{
	if (pte_list_desc_cache)
	kmem_cache_destroy(pte_list_desc_cache);
	if (mmu_page_header_cache)
	kmem_cache_destroy(mmu_page_header_cache);
}