aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dave@treblig.org>2024-09-19 00:47:48 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2024-10-03 17:26:06 +0300
commitb443521b232bdf8f60266d67dc376cd0f080feac (patch)
tree7000169c4decd112dddcf60aabb5211d83882d9d
parent40ebdc4b60c53c36283cfb6e9e887db7ee2cf014 (diff)
downloadqemu-b443521b232bdf8f60266d67dc376cd0f080feac.zip
qemu-b443521b232bdf8f60266d67dc376cd0f080feac.tar.gz
qemu-b443521b232bdf8f60266d67dc376cd0f080feac.tar.bz2
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 <dave@treblig.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r--hw/pci/pcie_port.c10
-rw-r--r--include/hw/pci/pcie_port.h1
2 files changed, 0 insertions, 11 deletions
diff --git a/hw/pci/pcie_port.c b/hw/pci/pcie_port.c
index 20ff2b3..9f978ba 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 90e6cf4..7cd7af8 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);