From patchwork Mon Jan 14 17:51:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cong Ding X-Patchwork-Id: 1973191 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id E49C1DF2E1 for ; Mon, 14 Jan 2013 17:54:40 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TuoBg-0002ML-Sr; Mon, 14 Jan 2013 17:51:08 +0000 Received: from mail-qc0-f171.google.com ([209.85.216.171]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TuoBd-0002M2-JN for linux-arm-kernel@lists.infradead.org; Mon, 14 Jan 2013 17:51:06 +0000 Received: by mail-qc0-f171.google.com with SMTP id d1so2666199qca.16 for ; Mon, 14 Jan 2013 09:51:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=VRUx51Nxv4dfj+0UZXBkmqS5DpwaI3dVmA2jZLi1h3o=; b=my7aCsgN6NMKfKjJNxyWLb8OWlE1NNhJfg3hFJwUMTbrL3dSuuvszR8sQdGSZsr95K Do4iBPXeV8DwnXmooOqarevYH1gS3ctsWiMLi9kdLingtPZ4IajhWrSaS58tkx3lcxJd 8tmX70+kDTAOisMh9mL+9HRJh7e4RYXhsmhSlcxJlYGqbm4t6nv2hg2jMbH7s3q1YuA6 g0PhYj4nc/6Zl2YFzr9zKxIrCXUDf+ZZ68Thr/lN/7jCICoxw5aAJLsl41dIMN0cGioO CoYmKsPORRM5b7a75K4G5vYSlB4c5Ol9ZW2YBXk68UFPKZ2hc7N7y80kihT/8QmVlsoU 9wfw== X-Received: by 10.224.183.147 with SMTP id cg19mr69920272qab.16.1358185864449; Mon, 14 Jan 2013 09:51:04 -0800 (PST) Received: from localhost.localdomain (ec2-54-243-39-165.compute-1.amazonaws.com. [54.243.39.165]) by mx.google.com with ESMTPS id j20sm10188930qaq.17.2013.01.14.09.51.03 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 14 Jan 2013 09:51:03 -0800 (PST) From: Cong Ding To: Ben Dooks , Kukjin Kim , Russell King , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org 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> X-Mailer: git-send-email 1.7.4.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130114_125105_824396_931C1E0B X-CRM114-Status: GOOD ( 11.25 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dinggnu[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.216.171 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Cong Ding X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@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