]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
KVM: x86: svm: remove redundant assignment of var new_entry
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 12 Aug 2019 02:33:00 +0000 (10:33 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Aug 2019 14:28:36 +0000 (16:28 +0200)
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>
arch/x86/kvm/svm.c

index d685491fce4d1091f0b0bf0382cfa5d0fe77796e..e3d3b2128f2b66c031fd6a9cbb47c9b4f379b87d 100644 (file)
@@ -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);