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

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
Loading
Loading
Loading
Loading
+49 −49
Original line number Diff line number Diff line
@@ -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;