mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
pci: Automatically fix operator precedence clippy warning
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
@@ -291,7 +291,7 @@ impl PciConfigIo {
|
||||
),
|
||||
2 => (
|
||||
0x0000_ffff << (offset * 16),
|
||||
(u32::from(data[1]) << 8 | u32::from(data[0])) << (offset * 16),
|
||||
((u32::from(data[1]) << 8) | u32::from(data[0])) << (offset * 16),
|
||||
),
|
||||
4 => (0xffff_ffff, LittleEndian::read_u32(data)),
|
||||
_ => return,
|
||||
|
||||
Reference in New Issue
Block a user