mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
qemuDomainValidateDevicePCISlotsChipsets: Remove unused @qemuCaps
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
ed85cc5c3c
commit
59f529befa
@ -2021,7 +2021,6 @@ qemuDomainValidateDevicePCISlotsQ35(virDomainDef *def,
|
||||
|
||||
static int
|
||||
qemuDomainValidateDevicePCISlotsChipsets(virDomainDef *def,
|
||||
virQEMUCaps *qemuCaps G_GNUC_UNUSED,
|
||||
virDomainPCIAddressSet *addrs)
|
||||
{
|
||||
if (qemuDomainIsI440FX(def) &&
|
||||
@ -2603,8 +2602,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
|
||||
@ -2739,8 +2737,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)
|
||||
|
Loading…
Reference in New Issue
Block a user