diff --git a/devices/src/virtio/snd/vios_backend/shm_vios.rs b/devices/src/virtio/snd/vios_backend/shm_vios.rs index 65c9d34d9e..537da41940 100644 --- a/devices/src/virtio/snd/vios_backend/shm_vios.rs +++ b/devices/src/virtio/snd/vios_backend/shm_vios.rs @@ -490,7 +490,7 @@ fn spawn_recv_thread( if status == u32::MAX { // Anyone waiting for this would continue to wait for as long as status is // u32::MAX - status = status - 1; + status -= 1; } let offset = msg.buffer_offset as usize; let consumed_len = msg.consumed_len as usize;