ARM: use a temporary variable to hold maximum vmalloc size
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 18 May 2021 11:40:21 +0000 (12:40 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 7 Jun 2021 11:56:18 +0000 (12:56 +0100)
commit4f706b078fd50a8eed9543a8d3fc64f1e840b7d2
tree912979c534bf3f01e616de5649c691024f2c8391
parent01bb34852bf3b3e25455340fa3fedf9fc4ba38d6
ARM: use a temporary variable to hold maximum vmalloc size

We calculate the maximum size of the vmalloc space twice in
early_vmalloc(). Use a temporary variable to hold this value.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/mm/mmu.c