mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
89107d2db4
commit
f1c33afc8e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user