diff options
author | Alexander Gordeev <agordeev@linux.ibm.com> | 2023-07-02 22:29:10 +0200 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2023-07-24 12:12:23 +0200 |
commit | 355e30ca1a707526b23a9b016fa4f740e9379c8d (patch) | |
tree | 9f821dd5a68dd1b6d5aaafb9215924c39c498487 /arch/s390/include/asm/setup.h | |
parent | 3b53d7b131bd79d97dd553af84846fde456e029f (diff) |
s390/mm: remove redundant check against VMEM_MAX_PHYS
The value of ident_map_size could never exceed the value of
vmemmap as secured by setup_kernel_memory_layout() function:
/* make sure identity map doesn't overlay with vmemmap */
ident_map_size = min(ident_map_size, vmemmap_start);
Since VMEM_MAX_PHYS macro is set to vmemmap and a newly added
range is checked against ident_map_size in add_memory_merged()
function anyway, the check against VMEM_MAX_PHYS is redundant.
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/setup.h')
0 files changed, 0 insertions, 0 deletions