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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Xiantao Zhang<xiantao.zhang@xxxxxxxxx>

> -----Original Message-----
> From: Wei Yongjun [mailto:weiyj.lk@xxxxxxxxx]
> Sent: Wednesday, October 17, 2012 11:04 PM
> To: avi@xxxxxxxxxx; mtosatti@xxxxxxxxxx; Zhang, Xiantao; Luck, Tony; Yu,
> Fenghua
> Cc: yongjun_wei@xxxxxxxxxxxxxxxxx; kvm@xxxxxxxxxxxxxxx; kvm-
> ia64@xxxxxxxxxxxxxxx; linux-ia64@xxxxxxxxxxxxxxx
> Subject: [PATCH] KVM: ia64: remove unused variable in
> kvm_release_vm_pages()
> 
> From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
> 
> 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@xxxxxxxxxxxxxxxxx>
> ---
>  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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux