From 8a7cc6bf2dec347406994fa531df83c4986a117e Mon Sep 17 00:00:00 2001 From: Dennis Kempin Date: Tue, 6 Apr 2021 10:54:22 -0700 Subject: [PATCH] Fix clippy nit This should make Kokoro happy again. TEST=None BUG=None Change-Id: I601e6c03b60e1f9f93ecdb54c6c3bd76fb7d8a87 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2808133 Auto-Submit: Dennis Kempin Reviewed-by: Abhishek Bhardwaj Reviewed-by: Zach Reizner Reviewed-by: Daniel Verkamp Reviewed-by: Stephen Barber Commit-Queue: Zach Reizner Commit-Queue: Daniel Verkamp Tested-by: kokoro --- devices/src/virtio/snd/vios_backend/shm_vios.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;