From: Hiroshi DOYU Date: Thu, 9 Oct 2008 11:38:00 +0000 (+0300) Subject: ARM: OMAP: fix uninitialized warning X-Git-Tag: v2.6.27-omap1~51 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?p=linux-2.6-omap-h63xx.git;a=commitdiff_plain;h=bb64148ce88ba8849b5b86780398a70f3a3d3cc1 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 --- 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; }