From dbf4a252adc8bedcaca6e6255416883c74a7f187 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 4 Dec 2020 09:19:03 +0000 Subject: [PATCH] devices: acpi: Remove empty BusDevice::write implementation The trait already includes an empty implementation of this function. Signed-off-by: Rob Bradford --- devices/src/acpi.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/devices/src/acpi.rs b/devices/src/acpi.rs index 731353b79..157ce3fb3 100644 --- a/devices/src/acpi.rs +++ b/devices/src/acpi.rs @@ -93,8 +93,6 @@ impl BusDevice for AcpiGEDDevice { data[0] = self.notification_type.bits(); self.notification_type = HotPlugNotificationFlags::NO_DEVICES_CHANGED; } - - fn write(&mut self, _base: u64, _offset: u64, _data: &[u8]) {} } #[cfg(feature = "acpi")] @@ -183,6 +181,4 @@ impl BusDevice for AcpiPMTimerDevice { data.copy_from_slice(&counter.to_le_bytes()); } - - fn write(&mut self, _base: u64, _offset: u64, _data: &[u8]) {} }