From bb64148ce88ba8849b5b86780398a70f3a3d3cc1 Mon Sep 17 00:00:00 2001 From: Hiroshi DOYU Date: Thu, 9 Oct 2008 14:38:00 +0300 Subject: [PATCH] ARM: OMAP: fix uninitialized warning warning: 'rev_name' may be used uninitialized in this function Signed-off-by: Hiroshi DOYU Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/id.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index 7a7ad186376..c002076b412 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c @@ -147,7 +147,7 @@ void __init omap34xx_check_revision(void) u32 cpuid, idcode; u16 hawkeye; u8 rev; - char *rev_name; + char *rev_name = "ES1.0"; /* * We cannot access revision registers on ES1.0. @@ -157,7 +157,6 @@ void __init omap34xx_check_revision(void) cpuid = read_cpuid(CPUID_ID); if ((((cpuid >> 4) & 0xfff) == 0xc08) && ((cpuid & 0xf) == 0x0)) { system_rev = OMAP3430_REV_ES1_0; - rev_name = "ES1.0"; goto out; } -- 2.41.0