x86: Address "Bitwise-and with zero CONSTANT_EXPRESSION_RESULT" Coverity issues
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 27 Jun 2018 12:26:36 +0000 (13:26 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 Jul 2018 11:12:15 +0000 (12:12 +0100)
commit0932210ac0956fe0ce6f23cf73f56d7c2f9bc5df
tree4fecaa4e6e6f430516da33ef58ff48dbe2f0a83a
parentfd32dcfe4c9a539f8e5d26ff4c5ca50ee54556b2
x86: Address "Bitwise-and with zero CONSTANT_EXPRESSION_RESULT" Coverity issues

Coverity complains at code which which performs a bitwise and with a constant
that happens to be zero.  Rearrange the C to test the constant first and short
circuit the bitwise and.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <JBeulich@suse.com>
xen/arch/x86/mm.c