diff options
author | Clemens Gruber <clemens.gruber@pqgruber.com> | 2019-09-22 14:25:51 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2019-10-27 21:14:34 +0000 |
commit | 032be72806d1b34db7057f2c7982d87ed2274751 (patch) | |
tree | 5c937d582ec7beaf864855a003a7e51373c4de2d /arch/arm/mm | |
parent | d6d5df1db6e9d7f8f76d2911707f7d5877251b02 (diff) | |
download | linux-032be72806d1b34db7057f2c7982d87ed2274751.tar.gz linux-032be72806d1b34db7057f2c7982d87ed2274751.tar.bz2 linux-032be72806d1b34db7057f2c7982d87ed2274751.zip |
ARM: 8907/1: arch: reuse addr variable in pfn_valid
Avoid calling __pfn_to_phys twice.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index b4be3baa83d4..a373e9f59fd4 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -180,7 +180,7 @@ int pfn_valid(unsigned long pfn) if (__phys_to_pfn(addr) != pfn) return 0; - return memblock_is_map_memory(__pfn_to_phys(pfn)); + return memblock_is_map_memory(addr); } EXPORT_SYMBOL(pfn_valid); #endif |