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>
if ( iopl_ok(v, regs) )
return true;
- 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;