Skip to content

Commit

Permalink
[PATCH] i386: Fix io_apic.c warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Dec 9, 2006
1 parent 7e74437 commit 306a22c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/i386/kernel/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2485,7 +2485,7 @@ device_initcall(ioapic_init_sysfs);
int create_irq(void)
{
/* Allocate an unused irq */
int irq, new, vector;
int irq, new, vector = 0;
unsigned long flags;

irq = -ENOSPC;
Expand Down

0 comments on commit 306a22c

Please sign in to comment.