vmm: memory_manager: Simplify start_addr()

Small simplification for the function calculating the start address.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2020-08-17 14:49:45 +02:00 committed by Samuel Ortiz
parent 12212d2966
commit d25ec66bb6

View File

@ -613,11 +613,9 @@ impl MemoryManager {
};
#[cfg(target_arch = "x86_64")]
let start_addr = if mem_end < arch::layout::MEM_32BIT_RESERVED_START {
arch::layout::RAM_64BIT_START
} else {
start_addr
};
if mem_end < arch::layout::MEM_32BIT_RESERVED_START {
return arch::layout::RAM_64BIT_START;
}
start_addr
}