Messages in this thread Patch in this message | | | Date | Thu, 4 Dec 2008 09:00:13 +0800 | From | Jianjun Kong <> | 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/
| |