/* Utility function to free root bridge instances array from  */
VOID EFIAPI PciHostBridgeUtilityFreeRootBridges(IN PCI_ROOT_BRIDGE *Bridges, IN UINTN Count)
/* Utility function to free root bridge instances array from  */
VOID EFIAPI PciHostBridgeUtilityFreeRootBridges(IN PCI_ROOT_BRIDGE *Bridges, IN UINTN Count)
{
  if ((Bridges == NULL) && (Count == 0)) {
    return;
  }
  ASSERT (Bridges != NULL && Count > 0);
  do {
    --Count;
    PciHostBridgeUtilityUninitRootBridge (&Bridges[Count]);
  } while (Count > 0);
  FreePool (Bridges);
}