From c61ea3b5af253c8f8ad92f5dedf2f9c15551e3d5 Mon Sep 17 00:00:00 2001 From: dongshen Date: Mon, 10 Jun 2019 13:15:44 -0700 Subject: [PATCH] HV: remove unused function find_pci_pdev find_pci_pdev is not used any more, remove it. Tracked-On: #3241 Signed-off-by: dongshen Acked-by: Eddie Dong --- hypervisor/hw/pci.c | 15 --------------- hypervisor/include/hw/pci.h | 1 - 2 files changed, 16 deletions(-) diff --git a/hypervisor/hw/pci.c b/hypervisor/hw/pci.c index 843b601b86..b861500524 100644 --- a/hypervisor/hw/pci.c +++ b/hypervisor/hw/pci.c @@ -394,18 +394,3 @@ static void init_pdev(uint16_t pbdf) pr_err("%s, failed to alloc pci_pdev!\n", __func__); } } - -struct pci_pdev *find_pci_pdev(union pci_bdf pbdf) -{ - struct pci_pdev *pdev = NULL; - uint32_t i; - - for (i = 0U; i < num_pci_pdev; i++) { - if (bdf_is_equal(&pci_pdev_array[i].bdf, &pbdf)) { - pdev = &pci_pdev_array[i]; - break; - } - } - - return pdev; -} diff --git a/hypervisor/include/hw/pci.h b/hypervisor/include/hw/pci.h index dc44ba8af5..6b6cd6073b 100644 --- a/hypervisor/include/hw/pci.h +++ b/hypervisor/include/hw/pci.h @@ -252,7 +252,6 @@ uint32_t pci_pdev_read_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes); void pci_pdev_write_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes, uint32_t val); void enable_disable_pci_intx(union pci_bdf bdf, bool enable); -struct pci_pdev *find_pci_pdev(union pci_bdf pbdf); void init_pci_pdev_list(void);