vmm: Cleanup warning from "pci" feature only build

Mark exit_evt with an underscore it may be unused (it is ignored if the
"acpi" feature is not turned on.)

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2019-09-16 14:25:08 +01:00 committed by Sebastien Boeuf
parent 3567206059
commit 7358144f09

View File

@ -299,7 +299,7 @@ impl DeviceManager {
msi_capable: bool,
userspace_ioapic: bool,
mut mem_slots: u32,
exit_evt: &EventFd,
_exit_evt: &EventFd,
reset_evt: &EventFd,
) -> DeviceManagerResult<Self> {
let mut io_bus = devices::Bus::new();
@ -362,7 +362,7 @@ impl DeviceManager {
#[cfg(feature = "acpi")]
let acpi_device = Arc::new(Mutex::new(devices::AcpiShutdownDevice::new(
exit_evt.try_clone().map_err(DeviceManagerError::EventFd)?,
_exit_evt.try_clone().map_err(DeviceManagerError::EventFd)?,
reset_evt.try_clone().map_err(DeviceManagerError::EventFd)?,
)));