mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
maint: use parentheses after if
Some instances of ARCH_IS_PPC64 did not use them. Introduced by commitsda636d8
andef08a54
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
eefabb38c3
commit
0a12d96c85
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user