mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user