mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-20 19:45:32 +00:00
hypervisor: Automatically fix operator precedence clippy warning
Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
parent
dd0b95ba5c
commit
a322e2d6f4
@ -614,7 +614,7 @@ impl vm::Vm for KvmVm {
|
||||
// different `devid` to all the devices. Limitation is that at
|
||||
// most 256 segments can be supported.
|
||||
//
|
||||
let modified_devid = (cfg.devid & 0x00ff_0000) >> 8 | cfg.devid & 0xff;
|
||||
let modified_devid = ((cfg.devid & 0x00ff_0000) >> 8) | cfg.devid & 0xff;
|
||||
|
||||
kvm_route.flags = KVM_MSI_VALID_DEVID;
|
||||
kvm_route.u.msi.__bindgen_anon_1.devid = modified_devid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user