]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: commonize allocation of the new memory slots
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Nov 2014 09:46:45 +0000 (10:46 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Nov 2014 11:15:34 +0000 (12:15 +0100)
commit9875d9e5678cb3770a6d14f3827b029c9d322168
tree2a8c0874af9f00cf323d8aa95738a596c5dfdd22
parent7f17a64ba175c391f2e732fc9fca89c53f3c4ea7
kvm: commonize allocation of the new memory slots

The two kmemdup invocations can be unified.  I find that the new
placement of the comment makes it easier to see what happens.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c