From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cong Ding Subject: [PATCH] arm: mach-s3c24xx/common.c: fix uninitialized variable warning Date: Mon, 14 Jan 2013 17:51:00 +0000 Message-ID: <1358185860-5425-1-git-send-email-dinggnu@gmail.com> Return-path: Received: from mail-qc0-f182.google.com ([209.85.216.182]:64592 "EHLO mail-qc0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757471Ab3ANRvG (ORCPT ); Mon, 14 Jan 2013 12:51:06 -0500 Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: Ben Dooks , Kukjin Kim , Russell King , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Cong Ding the use of variable tmp is uninitialized, so we fix it. Signed-off-by: Cong Ding --- arch/arm/mach-s3c24xx/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-s3c24xx/common.c b/arch/arm/mach-s3c24xx/common.c index 0c9e9a7..6bcf87f 100644 --- a/arch/arm/mach-s3c24xx/common.c +++ b/arch/arm/mach-s3c24xx/common.c @@ -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 -- 1.7.9.5 From mboxrd@z Thu Jan 1 00:00:00 1970 From: dinggnu@gmail.com (Cong Ding) Date: Mon, 14 Jan 2013 17:51:00 +0000 Subject: [PATCH] arm: mach-s3c24xx/common.c: fix uninitialized variable warning Message-ID: <1358185860-5425-1-git-send-email-dinggnu@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org the use of variable tmp is uninitialized, so we fix it. Signed-off-by: Cong Ding --- arch/arm/mach-s3c24xx/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-s3c24xx/common.c b/arch/arm/mach-s3c24xx/common.c index 0c9e9a7..6bcf87f 100644 --- a/arch/arm/mach-s3c24xx/common.c +++ b/arch/arm/mach-s3c24xx/common.c @@ -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 -- 1.7.9.5