提交 e2f4d065 编写于 作者: M Mike Travis 提交者: Ingo Molnar

irq: use WARN() instead of WARN_ON().

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: NMike Travis <travis@sgi.com>
上级 9594949b
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册