From: Jianjun Kong <jianjun@zeuux.org>
To: mingo@redhat.com
Cc: Linux-Kernel-Mailing-List <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/3] x86: fix warning of uninitialized variable
Date: Thu, 4 Dec 2008 09:00:13 +0800 [thread overview]
Message-ID: <20081204010013.GA17445@ubuntu> (raw)
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
next reply other threads:[~2008-12-04 1:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-04 1:00 Jianjun Kong [this message]
2008-12-04 10:10 ` [PATCH 1/3] x86: fix warning of uninitialized variable Ingo Molnar
2008-12-04 10:16 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081204010013.GA17445@ubuntu \
--to=jianjun@zeuux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox