KVM: emulator: remove duplicated limit check
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Nov 2014 17:33:38 +0000 (18:33 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Nov 2014 17:40:24 +0000 (18:40 +0100)
commit997b04128d4e07fd59d00fc18e21fd591138627f
treea9000b90e25fb5695a13f0db19193bdc4f4407d3
parent01485a2230540c0dacd146e9927ea3d87dcb0fd8
KVM: emulator: remove duplicated limit check

The check on the higher limit of the segment, and the check on the
maximum accessible size, is the same for both expand-up and
expand-down segments.  Only the computation of "lim" varies.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c