kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] KVM: ia64: remove unused variable in kvm_release_vm_pages()
@ 2012-10-17 15:03 Wei Yongjun
  2012-10-18  0:23 ` Zhang, Xiantao
  2012-10-26 20:51 ` Marcelo Tosatti
  0 siblings, 2 replies; 3+ messages in thread
From: Wei Yongjun @ 2012-10-17 15:03 UTC (permalink / raw)
  To: avi, mtosatti, xiantao.zhang, tony.luck, fenghua.yu
  Cc: yongjun_wei, kvm, kvm-ia64, linux-ia64

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

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)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 arch/ia64/kvm/kvm-ia64.c | 2 --
 1 file changed, 2 deletions(-)

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]);


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-10-26 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-17 15:03 [PATCH] KVM: ia64: remove unused variable in kvm_release_vm_pages() Wei Yongjun
2012-10-18  0:23 ` Zhang, Xiantao
2012-10-26 20:51 ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).