mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 21:55:20 +00:00
vhost_user_fs: Remove an unneeded unwrap in handle_event
Remove an unneeded unwrap in handle_event. Signed-off-by: Sergio Lopez <slp@redhat.com>
This commit is contained in:
parent
e52129efb4
commit
531f4ff6b0
@ -203,7 +203,7 @@ impl<F: FileSystem + Send + Sync + 'static> VhostUserBackend for VhostUserFsBack
|
||||
loop {
|
||||
vring
|
||||
.mut_queue()
|
||||
.update_avail_event(self.mem.as_ref().unwrap());
|
||||
.update_avail_event(self.mem.as_ref().ok_or(Error::NoMemoryConfigured)?);
|
||||
if !self.process_queue(&mut vring)? {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user