Skip to content

Commit

Permalink
irq: use WARN() instead of WARN_ON().
Browse files Browse the repository at this point in the history
Impact: cleanup WARN msg.

Ingo requested:
> While at it, could you please also convert this to a WARN() construct
> instead? (in a separate commit)

... and it shall be done.  ;-)

Signed-off-by: Mike Travis <travis@sgi.com>
  • Loading branch information
Mike Travis authored and Ingo Molnar committed Jan 11, 2009
1 parent 9594949 commit e2f4d06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kernel/irq/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ struct irq_desc *irq_to_desc_alloc_cpu(unsigned int irq, int cpu)
int node;

if (irq >= nr_irqs) {
printk(KERN_WARNING "irq >= nr_irqs in irq_to_desc_alloc: %d %d\n",
irq, nr_irqs);
WARN_ON(1);
WARN(1, "irq (%d) >= nr_irqs (%d) in irq_to_desc_alloc\n",
irq, nr_irqs);
return NULL;
}

Expand Down

0 comments on commit e2f4d06

Please sign in to comment.