Signed-off-by: Peter Krempa <pkre...@redhat.com> Reviewed-by: Pavel Hrdina <phrd...@redhat.com> Reviewed-by: Neal Gompa <ngomp...@gmail.com> --- src/qemu/qemu_domain_address.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/qemu/qemu_domain_address.c b/src/qemu/qemu_domain_address.c index 8a2494947b..fff8816aa8 100644 --- a/src/qemu/qemu_domain_address.c +++ b/src/qemu/qemu_domain_address.c @@ -2020,7 +2020,6 @@ qemuDomainValidateDevicePCISlotsQ35(virDomainDef *def, static int qemuDomainValidateDevicePCISlotsChipsets(virDomainDef *def, - virQEMUCaps *qemuCaps G_GNUC_UNUSED, virDomainPCIAddressSet *addrs) { if (qemuDomainIsI440FX(def) && @@ -2602,8 +2601,7 @@ qemuDomainAssignPCIAddresses(virDomainDef *def, if (!(addrs = qemuDomainPCIAddressSetCreate(def, qemuCaps, nbuses, true))) goto cleanup; - if (qemuDomainValidateDevicePCISlotsChipsets(def, qemuCaps, - addrs) < 0) + if (qemuDomainValidateDevicePCISlotsChipsets(def, addrs) < 0) goto cleanup; /* For domains that have pci-root, reserve 1 extra slot for a @@ -2738,8 +2736,7 @@ qemuDomainAssignPCIAddresses(virDomainDef *def, goto cleanup; if (qemuDomainSupportsPCI(def, qemuCaps)) { - if (qemuDomainValidateDevicePCISlotsChipsets(def, qemuCaps, - addrs) < 0) + if (qemuDomainValidateDevicePCISlotsChipsets(def, addrs) < 0) goto cleanup; if (qemuDomainAssignDevicePCISlots(def, qemuCaps, addrs) < 0) -- 2.30.2