Refine the __setup_irq() to save few lines.
CC: Thomas Gleixner <[email protected]>
CC: Ingo Molnar <[email protected]>
CC: Peter Zijlstra <[email protected]>
Signed-off-by: Michael Wang <[email protected]>
---
kernel/irq/manage.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 514bcfd..46941e7 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -933,10 +933,8 @@ __setup_irq(unsigned int irq, struct irq_desc *desc,
struct irqaction *new)
* dummy function which warns when called.
*/
new->handler = irq_nested_primary_handler;
- } else {
- if (irq_settings_can_thread(desc))
- irq_setup_forced_threading(new);
- }
+ } else if (irq_settings_can_thread(desc))
+ irq_setup_forced_threading(new);
/*
* Create a handler thread when a thread function is supplied
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/