]> err.no Git - linux-2.6/commitdiff
[IA64] Remove compiler warinings about uninitialized variable in irq_ia64.c
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Wed, 22 Aug 2007 10:28:36 +0000 (19:28 +0900)
committerTony Luck <tony.luck@intel.com>
Wed, 19 Dec 2007 19:13:27 +0000 (11:13 -0800)
This patch removes the following compiler warning messages.

  CC      arch/ia64/kernel/irq_ia64.o
arch/ia64/kernel/irq_ia64.c: In function 'create_irq':
arch/ia64/kernel/irq_ia64.c:343: warning: 'domain.bits[0u]' may be used uninitialized in this function
arch/ia64/kernel/irq_ia64.c: In function 'assign_irq_vector':
arch/ia64/kernel/irq_ia64.c:203: warning: 'domain.bits[0u]' may be used uninitialized in this function

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/irq_ia64.c

index 00a4599e5f472d43edbbb91eb05c55ded2d9b6ab..0b52f19ed04615b8f637e2ee496fa8c488b5546c 100644 (file)
@@ -200,7 +200,7 @@ assign_irq_vector (int irq)
 {
        unsigned long flags;
        int vector, cpu;
-       cpumask_t domain;
+       cpumask_t domain = CPU_MASK_NONE;
 
        vector = -ENOSPC;
 
@@ -340,7 +340,7 @@ int create_irq(void)
 {
        unsigned long flags;
        int irq, vector, cpu;
-       cpumask_t domain;
+       cpumask_t domain = CPU_MASK_NONE;
 
        irq = vector = -ENOSPC;
        spin_lock_irqsave(&vector_lock, flags);