With everyone having their tags below agreeing that putting things the
other way around in the comparison makes things easier to understand, do
that rearrangement while changing the line anyway.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.apu@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit:
c6527bc66b6dd7a8dadaebb1047c8e52c6c5793c
master date: 2018-02-27 14:10:00 +0100
if ( iopl_ok(v, regs) )
return 1;
- if ( v->arch.pv_vcpu.iobmp_limit > (port + bytes) )
+ if ( (port + bytes) <= v->arch.pv_vcpu.iobmp_limit )
{
union { uint8_t bytes[2]; uint16_t mask; } x;