summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-10-17 17:03:42 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2012-10-26 22:51:12 +0200
commit787c57c0fb393fe8a3974d300ddcfe30373386fe (patch)
tree41634ddf34f98bd5651392c9f2f52caace1bd7f2
parentKVM: Take kvm instead of vcpu to mmu_notifier_retry (diff)
downloadlinux-787c57c0fb393fe8a3974d300ddcfe30373386fe.tar.xz
linux-787c57c0fb393fe8a3974d300ddcfe30373386fe.zip
KVM: ia64: remove unused variable in kvm_release_vm_pages()
The variable base_gfn is initialized but never used otherwise, so remove the unused variable. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Acked-by: Xiantao Zhang <xiantao.zhang@intel.com> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--arch/ia64/kvm/kvm-ia64.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c
index 8b3a9c0e771d..c71acd7f9a13 100644
--- a/arch/ia64/kvm/kvm-ia64.c
+++ b/arch/ia64/kvm/kvm-ia64.c
@@ -1362,11 +1362,9 @@ static void kvm_release_vm_pages(struct kvm *kvm)
struct kvm_memslots *slots;
struct kvm_memory_slot *memslot;
int j;
- unsigned long base_gfn;
slots = kvm_memslots(kvm);
kvm_for_each_memslot(memslot, slots) {
- base_gfn = memslot->base_gfn;
for (j = 0; j < memslot->npages; j++) {
if (memslot->rmap[j])
put_page((struct page *)memslot->rmap[j]);