KVM: x86: remove unused variable from walk_addr_generic()
authorGleb Natapov <gleb@redhat.com>
Tue, 8 Jan 2013 08:49:00 +0000 (10:49 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 8 Jan 2013 19:23:39 +0000 (17:23 -0200)
Fix compilation warning.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/paging_tmpl.h

index a7b24cf59a3c2900c01e9ea233430984fba1f702..2ad76b9811193a0cf141ae3a2e640312cd8fbd27 100644 (file)
@@ -151,7 +151,7 @@ static int FNAME(walk_addr_generic)(struct guest_walker *walker,
        pt_element_t pte;
        pt_element_t __user *uninitialized_var(ptep_user);
        gfn_t table_gfn;
-       unsigned index, pt_access, pte_access, accessed_dirty, shift;
+       unsigned index, pt_access, pte_access, accessed_dirty;
        gpa_t pte_gpa;
        int offset;
        const int write_fault = access & PFERR_WRITE_MASK;