]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/ppc/mmu_common.c: Simplify a switch statement
authorBALATON Zoltan <balaton@eik.bme.hu>
Sun, 26 May 2024 23:12:50 +0000 (01:12 +0200)
committerNicholas Piggin <npiggin@gmail.com>
Thu, 25 Jul 2024 23:51:34 +0000 (09:51 +1000)
commit40df08d2239f00abacdd58a39c34a66264ec91a9
treeca3ca1315180b51efcbbf4f0580592508d5387f8
parent8abd6d4288f69627f49d1e6e228d2f0d9d490c21
target/ppc/mmu_common.c: Simplify a switch statement

In mmu6xx_get_physical_address() the switch handles all cases so the
default is never reached and can be dropped. Also group together cases
which just return -4.

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