mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +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
@@ -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);
|
||||
|
Reference in New Issue
Block a user