public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.19-rc3] i386/io_apic: fix compiler warning in create_irq
@ 2006-10-29 21:04 Stefan Richter
  2006-10-30  9:02 ` Ingo Molnar
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Richter @ 2006-10-29 21:04 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: linux-kernel

Fix warning
arch/i386/kernel/io_apic.c: In function `create_irq':
arch/i386/kernel/io_apic.c:2420: warning: 'vector' might be used uninitialized in this function

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---

Only compile-tested.
arch/x86_64/kernel/io_apic.c seems to have the same initialization already.

Index: linux-2.6.19-rc3/arch/i386/kernel/io_apic.c
===================================================================
--- linux-2.6.19-rc3.orig/arch/i386/kernel/io_apic.c	2006-10-29 20:41:20.000000000 +0100
+++ linux-2.6.19-rc3/arch/i386/kernel/io_apic.c	2006-10-29 21:55:19.000000000 +0100
@@ -2421,6 +2421,7 @@ int create_irq(void)
 	unsigned long flags;
 
 	irq = -ENOSPC;
+	vector = 0;
 	spin_lock_irqsave(&vector_lock, flags);
 	for (new = (NR_IRQS - 1); new >= 0; new--) {
 		if (platform_legacy_irq(new))



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-11-09 10:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-29 21:04 [PATCH 2.6.19-rc3] i386/io_apic: fix compiler warning in create_irq Stefan Richter
2006-10-30  9:02 ` Ingo Molnar
2006-10-31  1:04   ` Andrew Morton
2006-10-31  9:37     ` Ingo Molnar
2006-10-31  9:49       ` Andrew Morton
2006-10-31 11:15         ` Ingo Molnar
2006-10-31 19:09           ` Adrian Bunk
2006-11-09 10:31             ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox