diff options
author | Andi Kleen <ak@suse.de> | 2006-12-09 15:33:36 -0500 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-12-09 15:33:36 -0500 |
commit | 306a22c2a20edf3a440bfb4cf2b94c19dfd81a53 (patch) | |
tree | d6f19ea93994a1e35b837d32a1ac0864b6f582f4 /arch/i386 | |
parent | 7e74437cf60cc84a655e301f1ee48027b3bcf96e (diff) |
[PATCH] i386: Fix io_apic.c warning
gcc 4.2 warns
linux/arch/i386/kernel/io_apic.c: In function ‘create_irq’:
linux/arch/i386/kernel/io_apic.c:2488: warning: ‘vector’ may be used uninitialized in this function
The warning is false, but somewhat legitimate so work around it.
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/io_apic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/io_apic.c b/arch/i386/kernel/io_apic.c index e21dcde0790e..2424cc9c7b3d 100644 --- a/arch/i386/kernel/io_apic.c +++ b/arch/i386/kernel/io_apic.c | |||
@@ -2485,7 +2485,7 @@ device_initcall(ioapic_init_sysfs); | |||
2485 | int create_irq(void) | 2485 | int create_irq(void) |
2486 | { | 2486 | { |
2487 | /* Allocate an unused irq */ | 2487 | /* Allocate an unused irq */ |
2488 | int irq, new, vector; | 2488 | int irq, new, vector = 0; |
2489 | unsigned long flags; | 2489 | unsigned long flags; |
2490 | 2490 | ||
2491 | irq = -ENOSPC; | 2491 | irq = -ENOSPC; |