HV: remove unused function find_pci_pdev

find_pci_pdev is not used any more, remove it.

Tracked-On: #3241
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
dongshen 2019-06-10 13:15:44 -07:00 committed by wenlingz
parent ad6f54b99a
commit c61ea3b5af
2 changed files with 0 additions and 16 deletions

View File

@ -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;
}

View File

@ -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);