summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
authorGui Jianfeng <guijianfeng@cn.fujitsu.com>2010-04-16 11:18:54 +0200
committerAvi Kivity <avi@redhat.com>2010-05-17 11:18:09 +0200
commitb2fc15a5ef6679a5f87fee012a836294532bc628 (patch)
tree7d6b7917733e52a41cb140dd23c24d78afca8ecc /arch/x86/kvm/mmu.c
parentKVM: MMU: Make use of is_large_pte() in walker (diff)
downloadlinux-b2fc15a5ef6679a5f87fee012a836294532bc628.tar.xz
linux-b2fc15a5ef6679a5f87fee012a836294532bc628.zip
KVM: MMU: Remove unused varialbe in rmap_next()
Remove unused varialbe in rmap_next() Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to '')
-rw-r--r--arch/x86/kvm/mmu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 0682a393ad90..7eff794457f3 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -647,7 +647,6 @@ static void rmap_remove(struct kvm *kvm, u64 *spte)
static u64 *rmap_next(struct kvm *kvm, unsigned long *rmapp, u64 *spte)
{
struct kvm_rmap_desc *desc;
- struct kvm_rmap_desc *prev_desc;
u64 *prev_spte;
int i;
@@ -659,7 +658,6 @@ static u64 *rmap_next(struct kvm *kvm, unsigned long *rmapp, u64 *spte)
return NULL;
}
desc = (struct kvm_rmap_desc *)(*rmapp & ~1ul);
- prev_desc = NULL;
prev_spte = NULL;
while (desc) {
for (i = 0; i < RMAP_EXT && desc->sptes[i]; ++i) {