mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
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:
committed by
ACRN System Integration
parent
658fff27b4
commit
c8bcab9006
@@ -37,7 +37,7 @@ static bool is_allocated_to_prelaunched_vm(struct pci_pdev *pdev)
|
||||
for (pci_idx = 0U; pci_idx < vm_config->pci_dev_num; pci_idx++) {
|
||||
dev_config = &vm_config->pci_devs[pci_idx];
|
||||
if ((dev_config->emu_type == PCI_DEV_TYPE_PTDEV) &&
|
||||
bdf_is_equal(&dev_config->pbdf, &pdev->bdf)) {
|
||||
bdf_is_equal(dev_config->pbdf, pdev->bdf)) {
|
||||
dev_config->pdev = pdev;
|
||||
found = true;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user