mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-07-07 10:15:45 +00:00
devices: acpi: Remove empty BusDevice::write implementation
The trait already includes an empty implementation of this function. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
add9b13497
commit
dbf4a252ad
@ -93,8 +93,6 @@ impl BusDevice for AcpiGEDDevice {
|
|||||||
data[0] = self.notification_type.bits();
|
data[0] = self.notification_type.bits();
|
||||||
self.notification_type = HotPlugNotificationFlags::NO_DEVICES_CHANGED;
|
self.notification_type = HotPlugNotificationFlags::NO_DEVICES_CHANGED;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn write(&mut self, _base: u64, _offset: u64, _data: &[u8]) {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "acpi")]
|
#[cfg(feature = "acpi")]
|
||||||
@ -183,6 +181,4 @@ impl BusDevice for AcpiPMTimerDevice {
|
|||||||
|
|
||||||
data.copy_from_slice(&counter.to_le_bytes());
|
data.copy_from_slice(&counter.to_le_bytes());
|
||||||
}
|
}
|
||||||
|
|
||||||
fn write(&mut self, _base: u64, _offset: u64, _data: &[u8]) {}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user