diff mbox series

[v5,32/32] target/ppc/mmu_common.c: Remove work around for spurious warnings

Message ID d7a7a2ad9adc6a1ad19c153bfe61060e35bbd672.1715285340.git.balaton@eik.bme.hu
State New
Headers show
Series Misc PPC exception and BookE MMU clean ups | expand

Commit Message

BALATON Zoltan May 9, 2024, 8:26 p.m. UTC
Now that some functions are external again the warnings don't appear
any more so the work around added earlier can be removed again.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
 target/ppc/mmu_common.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/target/ppc/mmu_common.c b/target/ppc/mmu_common.c
index 9ab67141b9..c559ad2d94 100644
--- a/target/ppc/mmu_common.c
+++ b/target/ppc/mmu_common.c
@@ -720,8 +720,6 @@  static bool ppc_jumbo_xlate(PowerPCCPU *cpu, vaddr eaddr,
         ret = mmu6xx_get_physical_address(env, &ctx, eaddr, access_type, type);
         break;
     case POWERPC_MMU_SOFT_4xx:
-        /* avoid maybe used uninitialized warnings for unused fields in ctx */
-        memset(&ctx, 0, sizeof(ctx));
         ret = mmu40x_get_physical_address(env, &ctx.raddr, &ctx.prot, eaddr,
                                           access_type);
         break;