warning: 'rev_name' may be used uninitialized in this function

Signed-off-by: Hiroshi DOYU <[EMAIL PROTECTED]>
---
 arch/arm/mach-omap2/id.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
index 7a7ad18..c002076 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;
        }
 
-- 
1.6.0.2.229.g1293c

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to