]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: Move else branch to avoid large if block in mmu6xx_get_physical_address()
authorBALATON Zoltan <balaton@eik.bme.hu>
Sun, 12 May 2024 23:27:40 +0000 (01:27 +0200)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 23 May 2024 23:41:18 +0000 (09:41 +1000)
commitf1418bdeb09d201ea636d061fa6edf1175074a09
tree3993c18616abb8068bf8df861ff165562b03da14
parent269d6f006b855266bb60b3e027a143ae1a654179
target/ppc: Move else branch to avoid large if block in mmu6xx_get_physical_address()

In mmu6xx_get_physical_address() we have a large if block with a two
line else branch that effectively returns. Invert the condition and
move the else there to allow deindenting the large if block to make
the flow easier to follow.

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