[PATCH 4/4] ARM: OMAP2: zero-initialize local buffer in omap3_cpuinfo
Thorsten Blum
thorsten.blum at linux.dev
Thu Apr 23 10:10:20 PDT 2026
Remove memset(0) and zero-initialize the local buffer instead.
Signed-off-by: Thorsten Blum <thorsten.blum at linux.dev>
---
arch/arm/mach-omap2/id.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
index 126ffd87f572..9a10e96e65e3 100644
--- a/arch/arm/mach-omap2/id.c
+++ b/arch/arm/mach-omap2/id.c
@@ -209,11 +209,9 @@ void __init omap2xxx_check_revision(void)
static void __init omap3_cpuinfo(void)
{
const char *cpu_name;
- char buf[64];
+ char buf[64] = { 0 };
int n = 0;
- memset(buf, 0, sizeof(buf));
-
/*
* OMAP3430 and OMAP3530 are assumed to be same.
*
More information about the linux-arm-kernel
mailing list