]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: use #define instead of literal for highest slot in upstream port
authorLaine Stump <laine@laine.org>
Wed, 2 Mar 2016 20:31:02 +0000 (15:31 -0500)
committerLaine Stump <laine@laine.org>
Thu, 14 Apr 2016 18:00:33 +0000 (14:00 -0400)
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.

src/conf/domain_addr.c

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