Skip to content

Commit

Permalink
HV: remove unused function find_pci_pdev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
donsheng authored and wenlingz committed Jun 27, 2019
1 parent ad6f54b commit c61ea3b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions hypervisor/hw/pci.c
Expand Up @@ -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;
}
1 change: 0 additions & 1 deletion hypervisor/include/hw/pci.h
Expand Up @@ -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);


Expand Down

0 comments on commit c61ea3b

Please sign in to comment.