diff options
| author | Zhen Ni <zhen.ni@easystack.cn> | 2026-06-12 11:11:05 +0800 |
|---|---|---|
| committer | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-06-30 11:34:55 +0300 |
| commit | a5d67c54d414ee707333ce179d4492e99122e5b6 (patch) | |
| tree | ead793235b8e13cf571480f4c5504f8dd967b715 /scripts/Makefile.thinlto | |
| parent | dc59e4fea9d83f03bad6bddf3fa2e52491777482 (diff) | |
| download | linux-next-a5d67c54d414ee707333ce179d4492e99122e5b6.tar.gz linux-next-a5d67c54d414ee707333ce179d4492e99122e5b6.zip | |
mm/memblock: Remove redundant pageblock_align() in free_unused_memmap()
The assignment `prev_end = pageblock_align(end)` is redundant because
`prev_end` was already aligned to pageblock oundaries inside the loop.
Since pageblock_align() is a pure function, calling it again with the
same input produces the same result.
This line was added in commit f921f53e089a ("memblock: align freed
memory map on pageblock boundaries with SPARSEMEM"). Remove it to
simplify the code.
Signed-off-by: Zhen Ni <zhen.ni@easystack.cn>
Link: https://patch.msgid.link/20260612031105.3350181-1-zhen.ni@easystack.cn
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
