target/ppc/mmu_common.c: Simplify ppc6xx_tlb_pte_check()
authorBALATON Zoltan <balaton@eik.bme.hu>
Sun, 26 May 2024 23:12:43 +0000 (01:12 +0200)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 25 Jul 2024 23:51:34 +0000 (09:51 +1000)
commit9e2d6802b5c7d15d0d82bb7c9370ebd3df7492ac
treee57e15727b0de58d535ba4390752b6cd4fd98ac6
parent0e65cea1bd33d4f2917b272c3b03e0eeb8e7b6fd
target/ppc/mmu_common.c: Simplify ppc6xx_tlb_pte_check()

Invert conditions to avoid deep nested ifs and return early instead.
Remove some obvious comments that don't add more clarity.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/mmu_common.c