Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758089AbYLDBAb (ORCPT ); Wed, 3 Dec 2008 20:00:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755090AbYLDBAT (ORCPT ); Wed, 3 Dec 2008 20:00:19 -0500 Received: from smtp.zeuux.org ([210.51.160.52]:62933 "EHLO z.billxu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752070AbYLDBAS (ORCPT ); Wed, 3 Dec 2008 20:00:18 -0500 Date: Thu, 4 Dec 2008 09:00:13 +0800 From: Jianjun Kong To: mingo@redhat.com Cc: Linux-Kernel-Mailing-List Subject: [PATCH 1/3] x86: fix warning of uninitialized variable Message-ID: <20081204010013.GA17445@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1198 Lines: 37 fix warning of uninitialized 'base' in arch/x86/kernel/scx200_32.c arch/x86/kernel/scx200_32.c: In function ‘scx200_probe’: arch/x86/kernel/scx200_32.c:82: warning: ‘base’ may be used uninitialized in this function Signed-off-by: Jianjun Kong --- arch/x86/kernel/scx200_32.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/scx200_32.c b/arch/x86/kernel/scx200_32.c index 7e004ac..e9e3a24 100644 --- a/arch/x86/kernel/scx200_32.c +++ b/arch/x86/kernel/scx200_32.c @@ -58,7 +58,7 @@ static void __devinit scx200_init_shadow(void) static int __devinit scx200_probe(struct pci_dev *pdev, const struct pci_device_id *ent) { - unsigned base; + unsigned base = 0; if (pdev->device == PCI_DEVICE_ID_NS_SCx200_BRIDGE || pdev->device == PCI_DEVICE_ID_NS_SC1100_BRIDGE) { -- 1.5.6.3 -- Jianjun Kong | Happy Hacking HOMEPAGE: http://kongove.cn/ GTALK: kongjianjun@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/