mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
pci: configuration: Fix rustfmt issue
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
ce1d90c15b
commit
4b58eb4867
@ -413,7 +413,8 @@ impl PciConfiguration {
|
||||
pub fn get_bar64_addr(&self, bar_num: usize) -> u64 {
|
||||
let bar_idx = BAR0_REG + bar_num;
|
||||
|
||||
u64::from(self.registers[bar_idx] & BAR_MEM_ADDR_MASK) | (u64::from(self.registers[bar_idx+1]) << 32)
|
||||
u64::from(self.registers[bar_idx] & BAR_MEM_ADDR_MASK)
|
||||
| (u64::from(self.registers[bar_idx + 1]) << 32)
|
||||
}
|
||||
|
||||
/// Configures the IRQ line and pin used by this device.
|
||||
|
Loading…
x
Reference in New Issue
Block a user