Commit 032be728 authored by Clemens Gruber's avatar Clemens Gruber Committed by Russell King

ARM: 8907/1: arch: reuse addr variable in pfn_valid

Avoid calling __pfn_to_phys twice.
Signed-off-by: default avatarClemens Gruber <clemens.gruber@pqgruber.com>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent d6d5df1d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment