KVM: ia64: remove unused variable in kvm_release_vm_pages()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 17 Oct 2012 15:03:42 +0000 (23:03 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 26 Oct 2012 20:51:12 +0000 (18:51 -0200)
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>
arch/ia64/kvm/kvm-ia64.c

index 8b3a9c0e771dc3926131b428ba2472a337d41845..c71acd7f9a13d1a878a513558f099b04421ebe4b 100644 (file)
@@ -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]);