mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
Rewrite the condition in qemuDomainAssignARMVirtioMMIOAddresses
It was not indented correctly.
This commit is contained in:
parent
2d61934a21
commit
204b459c1a
@ -402,12 +402,16 @@ static void
|
||||
qemuDomainAssignARMVirtioMMIOAddresses(virDomainDefPtr def,
|
||||
virQEMUCapsPtr qemuCaps)
|
||||
{
|
||||
if (((def->os.arch == VIR_ARCH_ARMV7L) ||
|
||||
(def->os.arch == VIR_ARCH_AARCH64)) &&
|
||||
(STRPREFIX(def->os.machine, "vexpress-") ||
|
||||
STREQ(def->os.machine, "virt") ||
|
||||
STRPREFIX(def->os.machine, "virt-")) &&
|
||||
virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_MMIO)) {
|
||||
if (def->os.arch != VIR_ARCH_ARMV7L &&
|
||||
def->os.arch != VIR_ARCH_AARCH64)
|
||||
return;
|
||||
|
||||
if (!(STRPREFIX(def->os.machine, "vexpress-") ||
|
||||
STREQ(def->os.machine, "virt") ||
|
||||
STRPREFIX(def->os.machine, "virt-")))
|
||||
return;
|
||||
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_MMIO)) {
|
||||
qemuDomainPrimeVirtioDeviceAddresses(
|
||||
def, VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_MMIO);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user