From: Ján Tomko Date: Tue, 6 Mar 2018 12:06:56 +0000 (+0100) Subject: maint: use parentheses after if X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0a12d96c8590589d422387487f0055a446077246;p=libvirt.git maint: use parentheses after if Some instances of ARCH_IS_PPC64 did not use them. Introduced by commits da636d8 and ef08a54 Signed-off-by: Ján Tomko --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 293daa2aec..70b19311b4 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -14697,7 +14697,7 @@ virDomainVideoDefaultType(const virDomainDef *def) if (def->os.type == VIR_DOMAIN_OSTYPE_XEN || def->os.type == VIR_DOMAIN_OSTYPE_LINUX) return VIR_DOMAIN_VIDEO_TYPE_XEN; - else if ARCH_IS_PPC64(def->os.arch) + else if (ARCH_IS_PPC64(def->os.arch)) return VIR_DOMAIN_VIDEO_TYPE_VGA; else return VIR_DOMAIN_VIDEO_TYPE_CIRRUS; diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index ee02ecd0cd..b55013de6a 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -5154,7 +5154,7 @@ qemuDomainDeviceDefPostParse(virDomainDeviceDefPtr dev, if (dev->type == VIR_DOMAIN_DEVICE_VIDEO) { if (dev->data.video->type == VIR_DOMAIN_VIDEO_TYPE_DEFAULT) { - if ARCH_IS_PPC64(def->os.arch) + if (ARCH_IS_PPC64(def->os.arch)) dev->data.video->type = VIR_DOMAIN_VIDEO_TYPE_VGA; else if (qemuDomainIsVirt(def)) dev->data.video->type = VIR_DOMAIN_VIDEO_TYPE_VIRTIO;