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)
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

Simple merge