hv: pci: update function "bdf_is_equal"

- update the function argument type to union
  Declaring argument as pointer is not necessary since it
  only does the comparison.

Tracked-On: #1842
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
Shiqing Gao
2019-09-24 11:42:20 +08:00
committed by ACRN System Integration
parent 658fff27b4
commit c8bcab9006
3 changed files with 4 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ struct pci_vdev *pci_find_vdev(const struct acrn_vpci *vpci, union pci_bdf vbdf)
for (i = 0U; i < vpci->pci_vdev_cnt; i++) {
tmp = (struct pci_vdev *)&(vpci->pci_vdevs[i]);
if (bdf_is_equal(&(tmp->bdf), &vbdf)) {
if (bdf_is_equal(tmp->bdf, vbdf)) {
vdev = tmp;
break;
}