From: Wei Yongjun Date: Wed, 17 Oct 2012 15:03:42 +0000 (+0800) Subject: KVM: ia64: remove unused variable in kvm_release_vm_pages() X-Git-Tag: v3.8-rc1~121^2~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=787c57c0fb393fe8a3974d300ddcfe30373386fe;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Wei Yongjun Signed-off-by: Marcelo Tosatti --- diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c index 8b3a9c0..c71acd7 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]);