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

BALATON Zoltan posted 32 patches 6 months, 2 weeks ago
Maintainers: BALATON Zoltan <balaton@eik.bme.hu>, Nicholas Piggin <npiggin@gmail.com>, Daniel Henrique Barboza <danielhb413@gmail.com>
There is a newer version of this series
[PATCH v5 32/32] target/ppc/mmu_common.c: Remove work around for spurious warnings
Posted by BALATON Zoltan 6 months, 2 weeks ago
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 --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;
-- 
2.30.9