Re: [PATCH] KVM: ia64: remove unused variable in kvm_release_vm_pages()

2012-10-26 Thread Marcelo Tosatti
On Wed, Oct 17, 2012 at 11:03:42PM +0800, Wei Yongjun wrote:
 From: Wei Yongjun yongjun_...@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_...@trendmicro.com.cn
 ---
  arch/ia64/kvm/kvm-ia64.c | 2 --
  1 file changed, 2 deletions(-)

Applied, thanks.

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: [PATCH] KVM: ia64: remove unused variable in kvm_release_vm_pages()

2012-10-17 Thread Zhang, Xiantao
Acked-by: Xiantao Zhangxiantao.zh...@intel.com

 -Original Message-
 From: Wei Yongjun [mailto:weiyj...@gmail.com]
 Sent: Wednesday, October 17, 2012 11:04 PM
 To: a...@redhat.com; mtosa...@redhat.com; Zhang, Xiantao; Luck, Tony; Yu,
 Fenghua
 Cc: yongjun_...@trendmicro.com.cn; kvm@vger.kernel.org; kvm-
 i...@vger.kernel.org; linux-i...@vger.kernel.org
 Subject: [PATCH] KVM: ia64: remove unused variable in
 kvm_release_vm_pages()
 
 From: Wei Yongjun yongjun_...@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_...@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]);

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html