kvm: update_memslots: drop not needed check for the same slot
authorIgor Mammedov <imammedo@redhat.com>
Mon, 1 Dec 2014 17:29:24 +0000 (17:29 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Dec 2014 14:29:09 +0000 (15:29 +0100)
commit7f379cff11fb9e00e0ff9eff8fbc39ddfd4b1bec
tree1d6d8facc9b31c5c34bf1cd161b5da5c8b7282ae
parent5a38b6e6b41b4819516e13770ec02b7f0e622a57
kvm: update_memslots: drop not needed check for the same slot

UP/DOWN shift loops will shift array in needed
direction and stop at place where new slot should
be placed regardless of old slot size.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c