diff options
author | Gui Jianfeng <guijianfeng@cn.fujitsu.com> | 2010-04-16 05:18:54 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:18:09 -0400 |
commit | b2fc15a5ef6679a5f87fee012a836294532bc628 (patch) | |
tree | 7d6b7917733e52a41cb140dd23c24d78afca8ecc /arch/x86 | |
parent | 814a59d2077d630cffca7e2878c5b6f9b91ba725 (diff) |
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 'arch/x86')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
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) | |||
647 | static u64 *rmap_next(struct kvm *kvm, unsigned long *rmapp, u64 *spte) | 647 | static u64 *rmap_next(struct kvm *kvm, unsigned long *rmapp, u64 *spte) |
648 | { | 648 | { |
649 | struct kvm_rmap_desc *desc; | 649 | struct kvm_rmap_desc *desc; |
650 | struct kvm_rmap_desc *prev_desc; | ||
651 | u64 *prev_spte; | 650 | u64 *prev_spte; |
652 | int i; | 651 | int i; |
653 | 652 | ||
@@ -659,7 +658,6 @@ static u64 *rmap_next(struct kvm *kvm, unsigned long *rmapp, u64 *spte) | |||
659 | return NULL; | 658 | return NULL; |
660 | } | 659 | } |
661 | desc = (struct kvm_rmap_desc *)(*rmapp & ~1ul); | 660 | desc = (struct kvm_rmap_desc *)(*rmapp & ~1ul); |
662 | prev_desc = NULL; | ||
663 | prev_spte = NULL; | 661 | prev_spte = NULL; |
664 | while (desc) { | 662 | while (desc) { |
665 | for (i = 0; i < RMAP_EXT && desc->sptes[i]; ++i) { | 663 | for (i = 0; i < RMAP_EXT && desc->sptes[i]; ++i) { |