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: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Christophe Leroy 2019-04-26 05:59:53 +00:00 committed by Michael Ellerman
parent e2fb251188
commit 26e66b08c3

View file

@ -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
@ -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;