mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: remove unneeded #[allow(dead_code)]
On-behalf-of: SAP philipp.schuster@sap.com Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
committed by
Rob Bradford
parent
c348d6598e
commit
f1f02e7144
@@ -124,10 +124,6 @@ impl InterruptRoute {
|
||||
)
|
||||
}
|
||||
|
||||
// This is currently not used, but the upcoming vhost-guest feature
|
||||
// will use it. Use #[allow(dead_code)] to suppress a compiler
|
||||
// warning.
|
||||
#[allow(dead_code)]
|
||||
fn set_notifier(&mut self, eventfd: Option<EventFd>, vm: &dyn hypervisor::Vm) -> Result<()> {
|
||||
let old_irqfd = core::mem::replace(&mut self.irq_fd, eventfd);
|
||||
if self.registered {
|
||||
|
||||
Reference in New Issue
Block a user