kvm: update_memslots: drop not needed check for the same number of pages
authorIgor Mammedov <imammedo@redhat.com>
Mon, 1 Dec 2014 17:29:23 +0000 (17:29 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Dec 2014 14:29:09 +0000 (15:29 +0100)
commit5a38b6e6b41b4819516e13770ec02b7f0e622a57
tree1802f583cf191c8b67de69f0d10c15ee9e6f387e
parent45c3094a6424614e6fea135e4e1afd8e0a65f468
kvm: update_memslots: drop not needed check for the same number of pages

if number of pages haven't changed sorting algorithm
will do nothing, so there is no need to do extra check
to avoid entering sorting logic.

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