Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 787c57c0 authored by Wei Yongjun's avatar Wei Yongjun Committed by Marcelo Tosatti
Browse files

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: default avatarXiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 8ca40a70
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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]);