arm64: mm: simplify the page end calculation in __create_pgd_mapping()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 3 Nov 2019 12:35:58 +0000 (21:35 +0900)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 6 Nov 2019 11:17:09 +0000 (11:17 +0000)
commit32d1870877ba7675c642e903e5ef71c82a245325
treea83ade295c7903cc9b081440874dc27a8599e2fb
parente44ec4a35dbdf3f3fe772f176fab3b8be7e02b0f
arm64: mm: simplify the page end calculation in __create_pgd_mapping()

Calculate the page-aligned end address more simply.

The local variable, "length" is unneeded.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c