KVM: set_memory_region: Remove unnecessary variable memslot
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Fri, 11 Jan 2013 09:27:43 +0000 (18:27 +0900)
committerGleb Natapov <gleb@redhat.com>
Thu, 17 Jan 2013 12:27:59 +0000 (14:27 +0200)
commita843fac2536d6d81335d7011dd7ec4e438161dd7
treebf08a9989c45f2e7e5d454eae5868b9efd5d630f
parent0a706beefb1de71bf8551f9860dc529ef14d6753
KVM: set_memory_region: Remove unnecessary variable memslot

One such variable, slot, is enough for holding a pointer temporarily.
We also remove another local variable named slot, which is limited in
a block, since it is confusing to have the same name in this function.

Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
virt/kvm/kvm_main.c