Igor Mammedov wrote:
+++ b/src/fw/pciinit.c
..
@@ -819,12 +825,13 @@ static int pci_bus_hotplug_support(struct pci_bus *bus, u8 pcie_cap) */ u16 slot_implemented = pcie_flags & PCI_EXP_FLAGS_SLOT;
return downstream_port && slot_implemented;
return downstream_port && slot_implemented ?
}HOTPLUG_PCIE : HOTPLUG_NO_SUPPORTED;
check_shpc: shpc_cap = pci_find_capability(bus->bus_dev->bdf, PCI_CAP_ID_SHPC, 0);
- return !!shpc_cap;
- return !!shpc_cap ? HOTPLUG_SHPC : HOTPLUG_NO_SUPPORTED;
Maybe remove !! here.
//Peter