mirror of https://gitee.com/openkylin/libvirt.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
This commit is contained in:
parent
3a37af1e41
commit
7191778e5c
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue