From 53f74f18ac85b1b3a1c4bf458733b3ee3eafd0f2 Mon Sep 17 00:00:00 2001 From: Conghui Chen Date: Wed, 17 Jun 2020 17:05:52 +0000 Subject: [PATCH] hv: remove repeated assignment remove repeated assignment for vmcs_pa. Tracked-On: #4956 Signed-off-by: Conghui Chen --- hypervisor/arch/x86/guest/vmcs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hypervisor/arch/x86/guest/vmcs.c b/hypervisor/arch/x86/guest/vmcs.c index 28544e82d..0fb70d9f8 100644 --- a/hypervisor/arch/x86/guest/vmcs.c +++ b/hypervisor/arch/x86/guest/vmcs.c @@ -530,7 +530,6 @@ void init_vmcs(struct acrn_vcpu *vcpu) exec_vmclear((void *)&vmcs_pa); /* Load VMCS pointer */ - vmcs_pa = hva2hpa(vcpu->arch.vmcs); exec_vmptrld((void *)&vmcs_pa); *vmcs_ptr = (void *)vcpu->arch.vmcs;