]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: fix uninitialized warning
authorHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Thu, 9 Oct 2008 11:38:00 +0000 (14:38 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Oct 2008 11:41:52 +0000 (14:41 +0300)
warning: 'rev_name' may be used uninitialized in this function

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/id.c

index 7a7ad186376db78c6e81d0bfee20eaf1b534c0af..c002076b412fd3acbf3bc80ddca5b524cfa9dbcd 100644 (file)
@@ -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;
        }