Skip to contentSkip to conversation

remove unused variable from walk_addr_generic()

PATCH New Gleb Natapov 1 participant 1 message Jan 8, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove unused variable from walk_addr_generic()

Fix compilation warning.

arch/x86/kvm/paging_tmpl.h +1 -1
index a7b24cf..2ad76b9 100644
@@ -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;

--
Gleb.