1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00

conf: use #define instead of literal for highest slot in upstream port

Every other maxSlot was either set to 0 or to
VIR_PCI_ADDRESS_SLOT_LAST, but this one was for some reason set to the
literal value 31 (which is the same as VIR_PCI_ADDRESS_SLOT_LAST).
This makes them all consistent.
This commit is contained in:
Laine Stump 2016-03-02 15:31:02 -05:00
parent 5863b6e0c1
commit 6d0902a5ca

View File

@ -212,7 +212,7 @@ virDomainPCIAddressBusSetModel(virDomainPCIAddressBusPtr bus,
/* 31 slots, can only accept pcie-switch-port, no hotplug */ /* 31 slots, can only accept pcie-switch-port, no hotplug */
bus->flags = VIR_PCI_CONNECT_TYPE_PCIE_SWITCH; bus->flags = VIR_PCI_CONNECT_TYPE_PCIE_SWITCH;
bus->minSlot = 0; bus->minSlot = 0;
bus->maxSlot = 31; bus->maxSlot = VIR_PCI_ADDRESS_SLOT_LAST;
break; break;
default: default:
virReportError(VIR_ERR_INTERNAL_ERROR, virReportError(VIR_ERR_INTERNAL_ERROR,