pci: Automatically fix operator precedence clippy warning

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
Rob Bradford
2025-01-06 18:08:39 +00:00
committed by Bo Chen
parent a322e2d6f4
commit b57cc3d79f
4 changed files with 14 additions and 14 deletions

View File

@@ -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,