diff options
author | David S. Miller <davem@davemloft.net> | 2020-06-08 02:11:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-08 02:11:41 +0200 |
commit | 4f8ad73898171cea2dce9ecf5bd4337c9dfcddc1 (patch) | |
tree | 8e658364c9cedeaba345771432fd53b9f54dacb5 /arch/sparc/mm | |
parent | Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/vir... (diff) | |
parent | Merge branch 'sparc-scnprintf' (diff) | |
download | linux-4f8ad73898171cea2dce9ecf5bd4337c9dfcddc1.tar.xz linux-4f8ad73898171cea2dce9ecf5bd4337c9dfcddc1.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
Diffstat (limited to 'arch/sparc/mm')
-rw-r--r-- | arch/sparc/mm/init_64.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c index 1cf0d666dea3..b488d4587793 100644 --- a/arch/sparc/mm/init_64.c +++ b/arch/sparc/mm/init_64.c @@ -1674,29 +1674,29 @@ bool kern_addr_valid(unsigned long addr) pgd = pgd_offset_k(addr); if (pgd_none(*pgd)) - return 0; + return false; p4d = p4d_offset(pgd, addr); if (p4d_none(*p4d)) - return 0; + return false; pud = pud_offset(p4d, addr); if (pud_none(*pud)) - return 0; + return false; if (pud_large(*pud)) return pfn_valid(pud_pfn(*pud)); pmd = pmd_offset(pud, addr); if (pmd_none(*pmd)) - return 0; + return false; if (pmd_large(*pmd)) return pfn_valid(pmd_pfn(*pmd)); pte = pte_offset_kernel(pmd, addr); if (pte_none(*pte)) - return 0; + return false; return pfn_valid(pte_pfn(*pte)); } |