hw/pci: Remove unused pcie_chassis_find_slot
PATCH 1/1 hw/pci: Remove unused pcie_chassis_find_slot
From: "Dr. David Alan Gilbert" <[email protected]>
pcie_chassis_find_slot has been unused since it was added.
Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
--- hw/pci/pcie_port.c | 10 ---------- include/hw/pci/pcie_port.h | 1 - 2 files changed, 11 deletions(-)
hw/pci/pcie_port.c +0 -10
@@ -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;
include/hw/pci/pcie_port.h +0 -1
@@ -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);
Signature · 1 line
2.46.0
Quoted 38 lines · On 19/09/2024 01.47, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
pcie_chassis_find_slothas been unused since it was added.Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>--- hw/pci/pcie_port.c | 10 ---------- include/hw/pci/pcie_port.h | 1 - 2 files changed, 11 deletions(-)hw/pci/pcie_port.c +0
-10@@ -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;include/hw/pci/pcie_port.h +0
-0
include/hw/pci/pcie_port.h struct PCIESlot { · line 77
Quoted 7 lines
include/hw/pci/pcie_port.h +0
-1@@ -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);
Reviewed-by Thomas Huth <[email protected]>
Quoted 11 lines · On 19/9/24 01:47, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
pcie_chassis_find_slothas been unused since it was added.Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>--- hw/pci/pcie_port.c | 10 ---------- include/hw/pci/pcie_port.h | 1 - 2 files changed, 11 deletions(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>