KVM: MMU: Remove some useless code from alloc_mmu_pages()
authorWei Yongjun <yjwei@cn.fujitsu.com>
Fri, 22 Jan 2010 08:55:05 +0000 (16:55 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:05 +0000 (12:36 -0300)
commitd7fa6ab217aeed26293e01d7b64f79a1ac57e823
tree3a9a3d829ca9e3df18d43aa01591ee3635828c4e
parent0c04851c0c093ce98ab4ca69556480d779292418
KVM: MMU: Remove some useless code from alloc_mmu_pages()

If we fail to alloc page for vcpu->arch.mmu.pae_root, call to
free_mmu_pages() is unnecessary, which just do free the page
malloc for vcpu->arch.mmu.pae_root.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c