virtio-devices: vsock: Simplify discarded accept result

Do the necessary replacements to satisfy clippy::map_unwrap_or.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-03-05 23:38:13 +01:00
committed by Rob Bradford
parent 89107d2db4
commit f1c33afc8e

View File

@@ -409,7 +409,7 @@ impl VsockMuxer {
// If we're already maxed-out on connections, we'll just accept and
// immediately discard this potentially new one.
warn!("vsock: connection limit reached; refusing new host connection");
self.host_sock.accept().map(|_| 0).unwrap_or(0);
let _ = self.host_sock.accept();
return;
}
self.host_sock