mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-24 13:35:19 +00:00
vmm: Remove unneeded return
statement
This unneeded return statement giving clippy warnings Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
parent
1df952726a
commit
5bbf2dca80
@ -3161,14 +3161,13 @@ impl DeviceManager {
|
|||||||
|
|
||||||
#[cfg(feature = "acpi")]
|
#[cfg(feature = "acpi")]
|
||||||
pub fn notify_power_button(&self) -> DeviceManagerResult<()> {
|
pub fn notify_power_button(&self) -> DeviceManagerResult<()> {
|
||||||
return self
|
self.ged_notification_device
|
||||||
.ged_notification_device
|
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.lock()
|
.lock()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.notify(AcpiNotificationFlags::POWER_BUTTON_CHANGED)
|
.notify(AcpiNotificationFlags::POWER_BUTTON_CHANGED)
|
||||||
.map_err(DeviceManagerError::PowerButtonNotification);
|
.map_err(DeviceManagerError::PowerButtonNotification)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user