]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Don't omit parentheses
authorAndrea Bolognani <abologna@redhat.com>
Thu, 2 Mar 2017 16:52:45 +0000 (17:52 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 3 Mar 2017 11:55:13 +0000 (12:55 +0100)
The ARCH_IS_*() macro are defined in a way that allows
them to be used if a parentheses-less if statement, but
we don't really want that to happen

src/qemu/qemu_capabilities.c

index 6e41509fc660bdfb6d5e265b0e5b2ef7c07dc0b9..a9dc9a78190e6c90b1f479fa87c34467a9d73ad1 100644 (file)
@@ -785,7 +785,7 @@ virQEMUCapsProbeCPUModels(virQEMUCapsPtr qemuCaps, uid_t runUid, gid_t runGid)
     if (qemuCaps->arch == VIR_ARCH_I686 ||
         qemuCaps->arch == VIR_ARCH_X86_64) {
         parse = virQEMUCapsParseX86Models;
-    } else if ARCH_IS_PPC64(qemuCaps->arch) {
+    } else if (ARCH_IS_PPC64(qemuCaps->arch)) {
         parse = virQEMUCapsParsePPCModels;
     } else {
         VIR_DEBUG("don't know how to parse %s CPU models",