Skip to content

Commit

Permalink
[IA64] Remove compiler warinings about uninitialized variable in irq_…
Browse files Browse the repository at this point in the history
…ia64.c

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>
  • Loading branch information
Kenji Kaneshige authored and Tony Luck committed Dec 19, 2007
1 parent e384f41 commit 373167e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/ia64/kernel/irq_ia64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 373167e

Please sign in to comment.