KVM: MMU: Remove unused prev_shadow_ent variable from fetch()
authorMarcelo Tosatti <marcelo@kvack.org>
Tue, 4 Dec 2007 18:42:16 +0000 (13:42 -0500)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:18 +0000 (17:53 +0200)
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/paging_tmpl.h

index b24bc7c86078423b6ec821355b12493c408de93b..3c40a598ceb83f2753cda8af38052a7f7a971c24 100644 (file)
@@ -300,7 +300,6 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
        hpa_t shadow_addr;
        int level;
        u64 *shadow_ent;
-       u64 *prev_shadow_ent = NULL;
 
        if (!is_present_pte(walker->pte))
                return NULL;
@@ -326,7 +325,6 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
                        if (level == PT_PAGE_TABLE_LEVEL)
                                break;
                        shadow_addr = *shadow_ent & PT64_BASE_ADDR_MASK;
-                       prev_shadow_ent = shadow_ent;
                        continue;
                }
 
@@ -355,7 +353,6 @@ static u64 *FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
                shadow_pte = shadow_addr | PT_PRESENT_MASK | PT_ACCESSED_MASK
                        | PT_WRITABLE_MASK | PT_USER_MASK;
                *shadow_ent = shadow_pte;
-               prev_shadow_ent = shadow_ent;
        }
 
        FNAME(set_pte)(vcpu, walker->pte, shadow_ent,