return err;
offset = cfg.cap_ptr;
return err;
offset = cfg.cap_ptr;
- /* Make gcc happy, otherwise gcc fails build due to cap not set if offset ==
- * 0 */
- cap = (pci_capability_pcie_t *) (cfg.data + offset);
-
- while (offset)
{
cap = (pci_capability_pcie_t *) (cfg.data + offset);
{
cap = (pci_capability_pcie_t *) (cfg.data + offset);
offset = cap->next_offset;
}
offset = cap->next_offset;
}
if (cap->capability_id != PCI_CAP_ID_PCIE)
return clib_error_return (0, "PCIe capability config not found");
if (cap->capability_id != PCI_CAP_ID_PCIE)
return clib_error_return (0, "PCIe capability config not found");