mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-11 13:49:39 +00:00
hv: some coding style fixes
Fix issues reported by checkpatch.pl Tracked-On: #5917 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
This commit is contained in:
@@ -117,11 +117,10 @@ static void init_vhostbridge(struct pci_vdev *vdev)
|
||||
* and UOS_VIRT_PCI_MMCFG_BASE(0xE0000000) is fine. The trailing 1 is a ECAM enable-bit
|
||||
*/
|
||||
pciexbar_low = UOS_VIRT_PCI_MMCFG_BASE | 0x1U;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
/*Inject physical ECAM value to SOS vhostbridge since SOS may check PCIe-MMIO Base Address with it */
|
||||
phys_did = pci_pdev_read_cfg(hostbridge_bdf, PCIR_DEVICE, 2);
|
||||
for (i = 0U; i < (sizeof(hostbridge_did_highbytes) / sizeof(uint32_t)); i++){
|
||||
for (i = 0U; i < (sizeof(hostbridge_did_highbytes) / sizeof(uint32_t)); i++) {
|
||||
if (((phys_did & 0xff00U) >> 8) == hostbridge_did_highbytes[i]) {
|
||||
/* The offset of PCIEXBAR register is 0x60 on Intel platforms, and no counter-case is encountered yet */
|
||||
pciexbar_low = pci_pdev_read_cfg(hostbridge_bdf, 0x60U, 4);
|
||||
|
Reference in New Issue
Block a user