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

@@ -282,13 +282,9 @@ static inline uint64_t git_size_masked_bar_base(uint64_t size, uint64_t val)
return (mask & val);
}
/**
* @pre a != NULL
* @pre b != NULL
*/
static inline bool bdf_is_equal(const union pci_bdf *a, const union pci_bdf *b)
static inline bool bdf_is_equal(union pci_bdf a, union pci_bdf b)
{
return (a->value == b->value);
return (a.value == b.value);
}
uint32_t pci_pdev_read_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes);