Skip to contentSkip to conversation

arm: mach-s3c24xx/common.c: fix uninitialized variable warning

PATCH In review Cong Ding 2 participants 2 messages Jan 14, 2013 – Jan 18, 2013

Subsystems (3)
lore
Share & tools
lore

Cong Ding

author
#0 lore raw

PATCH 1/1 arm: mach-s3c24xx/common.c: fix uninitialized variable warning

the use of variable tmp is uninitialized, so we fix it.

---
 arch/arm/mach-s3c24xx/common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-s3c24xx/common.c +1 -1
index 0c9e9a7..6bcf87f 100644
@@ -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
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 23 lines · Cong Ding

the use of variable tmp is uninitialized, so we fix it.

---
 arch/arm/mach-s3c24xx/common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach- renamed from arch/arm/mach-s3c24xx/common.c +0 -0

s3c24xx/common.c
index 0c9e9a7..6bcf87f 100644

arch/arm/mach-s3c24xx/common.c +1 -2
@@ -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
--
Quoted 1 line

1.7.9.5

Yes, correct. Applied.

Thanks.

- Kukjin