From: Ingo Molnar Date: Thu, 18 Dec 2008 23:59:09 +0000 (+0100) Subject: x86: fix warning in arch/x86/kernel/io_apic.c X-Git-Tag: v2.6.29-rc1~538^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a7883dece6ef82097e6bdf19c1d0a20351e06056;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c index 58938cc4b7d..908c1d00a5c 100644 --- a/arch/x86/kernel/io_apic.c +++ b/arch/x86/kernel/io_apic.c @@ -3360,7 +3360,7 @@ static void ir_set_msi_irq_affinity(unsigned int irq, const struct cpumask *mask) { struct irq_desc *desc = irq_to_desc(irq); - struct irq_cfg *cfg; + struct irq_cfg *cfg = desc->chip_data; unsigned int dest; struct irte irte;