From CODING_STYLE:
Every indented statement is braced, but blocks that contain just one
statement may have the braces omitted. To avoid confusion, either all
the blocks in an if...else chain have braces, or none of them do.
CC: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
c_info->passthrough = ((c_info->type == LIBXL_DOMAIN_TYPE_PV) ||
!info.cap_iommu_hap_pt_share) ?
LIBXL_PASSTHROUGH_SYNC_PT : LIBXL_PASSTHROUGH_SHARE_PT;
- } else if (!info.cap_hvm_directio)
+ } else if (!info.cap_hvm_directio) {
c_info->passthrough = LIBXL_PASSTHROUGH_DISABLED;
+ }
/* An explicit setting should now have been chosen */
assert(c_info->passthrough != LIBXL_PASSTHROUGH_UNKNOWN);