diff mbox series

[1/2] sparc32: remove redundant memset in arch_mm_preinit()

Message ID 20260827145437.490605-2-ekffu200098@gmail.com
State New
Headers show
Series sparc32: remove redundant memsets after memblock allocations | expand

Commit Message

Sang-Heon Jeon Aug. 27, 2026, 2:54 p.m. UTC
memblock_alloc() returns zeroed memory, so the memset after the
allocation is redundant.

No functional change.

Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
---
 arch/sparc/mm/init_32.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c
index e0e66f91ceeb..b4f31d41d665 100644
--- a/arch/sparc/mm/init_32.c
+++ b/arch/sparc/mm/init_32.c
@@ -255,7 +255,6 @@  void __init arch_mm_preinit(void)
 		prom_printf("mem_init: Cannot alloc valid_addr_bitmap.\n");
 		prom_halt();
 	}
-	memset(sparc_valid_addr_bitmap, 0, i << 2);
 
 	taint_real_pages();
 }