Commit 89f40354 authored by Denis Efremov's avatar Denis Efremov Committed by Linus Torvalds
Browse files

xen/events: remove unlikely() from WARN() condition

"unlikely(WARN(x))" is excessive. WARN() already uses unlikely()


Signed-off-by: default avatarDenis Efremov <>
Cc: Boris Ostrovsky <>
Cc: Joe Perches <>
Reviewed-by: default avatarJuergen Gross <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent de3f186f
......@@ -247,7 +247,7 @@ static void xen_irq_info_cleanup(struct irq_info *info)
unsigned int evtchn_from_irq(unsigned irq)
if (unlikely(WARN(irq >= nr_irqs, "Invalid irq %d!\n", irq)))
if (WARN(irq >= nr_irqs, "Invalid irq %d!\n", irq))
return 0;
return info_for_irq(irq)->evtchn;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment