]> xenbits.xensource.com Git - libvirt.git/commitdiff
maint: use parentheses after if
authorJán Tomko <jtomko@redhat.com>
Tue, 6 Mar 2018 12:06:56 +0000 (13:06 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 8 Mar 2018 15:45:54 +0000 (16:45 +0100)
Some instances of ARCH_IS_PPC64 did not use them.

Introduced by commits da636d8 and ef08a54

Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
src/qemu/qemu_domain.c

index 293daa2aec7be0c96c123533bf1d89524061d42d..70b19311b478fe4f453247e1c35e3cfca81e321f 100644 (file)
@@ -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;
index ee02ecd0cd5767b36356bd25539a30a74bffe0cd..b55013de6ad7cbe99f173f6bd6931049a2220faa 100644 (file)
@@ -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;