From: Andrea Bolognani Date: Thu, 2 Mar 2017 16:52:45 +0000 (+0100) Subject: qemu: Don't omit parentheses X-Git-Tag: v3.2.0-rc1~399 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7191778e5c6a958a0ec220073fb298d525fc652e;p=thirdparty%2Flibvirt.git qemu: Don't omit parentheses 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 --- diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 6e41509fc6..a9dc9a7819 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -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",