lkml.org 
[lkml]   [2008]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 1/3] x86: fix warning of uninitialized variable

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 <jianjun@zeuux.org>
---
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/
\
 
 \ /
  Last update: 2008-12-04 02:03    [W:0.030 / U:0.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site