mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-08 22:05:20 +00:00
memory_manager: drop unneeded clippy suppressions
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
277cfd07ba
commit
ef05354c81
@ -1322,7 +1322,6 @@ impl MemoryManager {
|
|||||||
// (rounded-up) to 128MiB boundary.
|
// (rounded-up) to 128MiB boundary.
|
||||||
// If memory hotplug is not allowed, there is no alignment required.
|
// If memory hotplug is not allowed, there is no alignment required.
|
||||||
// On x86_64, it must also start at the 64bit start.
|
// On x86_64, it must also start at the 64bit start.
|
||||||
#[allow(clippy::let_and_return)]
|
|
||||||
fn start_addr(mem_end: GuestAddress, allow_mem_hotplug: bool) -> Result<GuestAddress, Error> {
|
fn start_addr(mem_end: GuestAddress, allow_mem_hotplug: bool) -> Result<GuestAddress, Error> {
|
||||||
let mut start_addr = if allow_mem_hotplug {
|
let mut start_addr = if allow_mem_hotplug {
|
||||||
GuestAddress(mem_end.0 | ((128 << 20) - 1))
|
GuestAddress(mem_end.0 | ((128 << 20) - 1))
|
||||||
|
Loading…
Reference in New Issue
Block a user