ARM: S3C24XX: fix uninitialized variable warning
authorCong Ding <dinggnu@gmail.com>
Fri, 18 Jan 2013 16:58:23 +0000 (08:58 -0800)
committerKukjin Kim <kgene.kim@samsung.com>
Mon, 28 Jan 2013 22:27:49 +0000 (14:27 -0800)
the use of variable tmp is uninitialized, so we fix it.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s3c24xx/common.c

index 0c9e9a785ef6e85d7e41260e09de23f1397a0871..6bcf87f65f9e41c7cb86dfd064495eb3a76820af 100644 (file)
@@ -197,7 +197,7 @@ static unsigned long s3c24xx_read_idcode_v4(void)
 
 static void s3c24xx_default_idle(void)
 {
-       unsigned long tmp;
+       unsigned long tmp = 0;
        int i;
 
        /* idle the system by using the idle mode which will wait for an