summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2019-08-12 10:33:00 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2019-08-14 16:28:36 +0200
commitc8e174b39887ea1992286ff8ffdbcf79f6057cf2 (patch)
tree7c8f4c5ef9612dc6995551e5ae16cd9f1c5ecba5 /arch
parented4e7b057e9e75cecd56f6c3434f88eaa69c1209 (diff)
downloadlinux-c8e174b39887ea1992286ff8ffdbcf79f6057cf2.tar.bz2
KVM: x86: svm: remove redundant assignment of var new_entry
new_entry is reassigned a new value next line. So it's redundant and remove it. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/svm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index d685491fce4d..e3d3b2128f2b 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -1714,7 +1714,6 @@ static int avic_init_backing_page(struct kvm_vcpu *vcpu)
if (!entry)
return -EINVAL;
- new_entry = READ_ONCE(*entry);
new_entry = __sme_set((page_to_phys(svm->avic_backing_page) &
AVIC_PHYSICAL_ID_ENTRY_BACKING_PAGE_MASK) |
AVIC_PHYSICAL_ID_ENTRY_VALID_MASK);