tools/libxl: Simplify DOMCTL_CDF_ flags handling in libxl__domain_make()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 29 Sep 2020 17:39:08 +0000 (18:39 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 6 Oct 2020 11:28:37 +0000 (12:28 +0100)
commit346b11561906840e29ca82d5569a51f6668d3a6a
tree32e9f11e82370186efad95ea04352b16cfae6642
parent8ef6345ef557cc2c47298217635a3088eaa59893
tools/libxl: Simplify DOMCTL_CDF_ flags handling in libxl__domain_make()

The use of the ternary operator serves only to obfuscate the code.  Rewrite it
in more simple terms, avoiding the need to conditionally OR zero into the
flags.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/light/libxl_create.c