]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit45e227cd265717f3330078a8a306e1197d0c8674
treebf08a9989c45f2e7e5d454eae5868b9efd5d630f
parentfe2a5e8b5e4a87584766c9757c66b1838e7ed42a
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