From 5bbf2dca807d1c788757e298b75abdf51d9bd6b5 Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Fri, 29 Jan 2021 17:02:16 -0800 Subject: [PATCH] vmm: Remove unneeded `return` statement This unneeded return statement giving clippy warnings Signed-off-by: Muminul Islam --- vmm/src/device_manager.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index 664d70dd8..efbb71606 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -3161,14 +3161,13 @@ impl DeviceManager { #[cfg(feature = "acpi")] pub fn notify_power_button(&self) -> DeviceManagerResult<()> { - return self - .ged_notification_device + self.ged_notification_device .as_ref() .unwrap() .lock() .unwrap() .notify(AcpiNotificationFlags::POWER_BUTTON_CHANGED) - .map_err(DeviceManagerError::PowerButtonNotification); + .map_err(DeviceManagerError::PowerButtonNotification) } }