From: Ian Jackson Date: Wed, 2 Oct 2019 15:55:47 +0000 (+0100) Subject: libxl: create: style: Add a pair of missing { ] X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~1365 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b01b1dc046da70a2621a4d1f032ddb22b0cdde6b;p=xen.git libxl: create: style: Add a pair of missing { ] 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 Signed-off-by: Ian Jackson --- diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index 62e13f3e7c..099761a2d7 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -68,8 +68,9 @@ int libxl__domain_create_info_setdefault(libxl__gc *gc, 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);