[PATCH 1/3] x86: fix warning of uninitialized variable

From: Jianjun Kong
Date: Wed Dec 03 2008 - 20:00:32 EST



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@xxxxxxxxx>
---
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@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/