Commit 26e66b08 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/mm: flatten function __find_linux_pte() step 3

__find_linux_pte() is full of if/else which is hard to
follow allthough the handling is pretty simple.

Previous patches left a { } block. This patch removes it.
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent e2fb2511
......@@ -348,7 +348,7 @@ pte_t *__find_linux_pte(pgd_t *pgdir, unsigned long ea,
hpdp = (hugepd_t *)&pgd;
goto out_huge;
}
{
/*
* Even if we end up with an unmap, the pgtable will not
* be freed, because we do an rcu free and here we are
......@@ -362,7 +362,7 @@ pte_t *__find_linux_pte(pgd_t *pgdir, unsigned long ea,
return NULL;
if (pud_huge(pud)) {
ret_pte = (pte_t *) pudp;
ret_pte = (pte_t *)pudp;
goto out;
}
if (is_hugepd(__hugepd(pud_val(pud)))) {
......@@ -400,7 +400,7 @@ pte_t *__find_linux_pte(pgd_t *pgdir, unsigned long ea,
}
return pte_offset_kernel(&pmd, ea);
}
out_huge:
if (!hpdp)
return NULL;
......
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