aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/io_apic.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-18 18:59:09 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-19 03:21:59 -0500
commita7883dece6ef82097e6bdf19c1d0a20351e06056 (patch)
treefa7ca12c6665a19048448f8300c7f58d9e4fd985 /arch/x86/kernel/io_apic.c
parent9924da434a13668fceb208d56dbdf86d166862cc (diff)
x86: fix warning in arch/x86/kernel/io_apic.c
this warning: arch/x86/kernel/io_apic.c: In function ‘ir_set_msi_irq_affinity’: arch/x86/kernel/io_apic.c:3373: warning: ‘cfg’ may be used uninitialized in this function triggers because the variable was truly uninitialized. We'd crash on entering this code. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/io_apic.c')
-rw-r--r--arch/x86/kernel/io_apic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index 58938cc4b7d3..908c1d00a5c7 100644
--- a/arch/x86/kernel/io_apic.c
+++ b/arch/x86/kernel/io_apic.c
@@ -3360,7 +3360,7 @@ static void
3360ir_set_msi_irq_affinity(unsigned int irq, const struct cpumask *mask) 3360ir_set_msi_irq_affinity(unsigned int irq, const struct cpumask *mask)
3361{ 3361{
3362 struct irq_desc *desc = irq_to_desc(irq); 3362 struct irq_desc *desc = irq_to_desc(irq);
3363 struct irq_cfg *cfg; 3363 struct irq_cfg *cfg = desc->chip_data;
3364 unsigned int dest; 3364 unsigned int dest;
3365 struct irte irte; 3365 struct irte irte;
3366 3366