From: Dr. David Alan Gilbert Date: Wed, 18 Sep 2024 23:47:48 +0000 (+0100) Subject: hw/pci: Remove unused pcie_chassis_find_slot X-Git-Tag: v9.2.0-rc0~62^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b443521b232bdf8f60266d67dc376cd0f080feac;p=thirdparty%2Fqemu.git hw/pci: Remove unused pcie_chassis_find_slot pcie_chassis_find_slot has been unused since it was added. Remove it. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Thomas Huth Reviewed-by: Michael Tokarev Signed-off-by: Michael Tokarev --- diff --git a/hw/pci/pcie_port.c b/hw/pci/pcie_port.c index 20ff2b39e88..9f978ba1648 100644 --- a/hw/pci/pcie_port.c +++ b/hw/pci/pcie_port.c @@ -92,16 +92,6 @@ static PCIESlot *pcie_chassis_find_slot_with_chassis(struct PCIEChassis *c, return s; } -PCIESlot *pcie_chassis_find_slot(uint8_t chassis_number, uint16_t slot) -{ - struct PCIEChassis *c; - c = pcie_chassis_find(chassis_number); - if (!c) { - return NULL; - } - return pcie_chassis_find_slot_with_chassis(c, slot); -} - int pcie_chassis_add_slot(struct PCIESlot *slot) { struct PCIEChassis *c; diff --git a/include/hw/pci/pcie_port.h b/include/hw/pci/pcie_port.h index 90e6cf45b87..7cd7af8cfa4 100644 --- a/include/hw/pci/pcie_port.h +++ b/include/hw/pci/pcie_port.h @@ -72,7 +72,6 @@ struct PCIESlot { }; void pcie_chassis_create(uint8_t chassis_number); -PCIESlot *pcie_chassis_find_slot(uint8_t chassis, uint16_t slot); int pcie_chassis_add_slot(struct PCIESlot *slot); void pcie_chassis_del_slot(PCIESlot *s);