arch/x86: remove redundant null checks before kmem_cache_destroy
authorTim Hansen <devtimhansen@gmail.com>
Sun, 8 Oct 2017 03:15:23 +0000 (23:15 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Oct 2017 12:01:54 +0000 (14:01 +0200)
commitc1bd743e54cd653bd5e7082255dc236cfd40dbf0
treea613a9249170e4b8f49e0de00e023fe783400390
parent8ad8182e935030f5af5122ce0c137529cb53b013
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: Tim Hansen <devtimhansen@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c