Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1361111 > unrolled thread
| Started by | Jianyu Zhan <nasa4836@gmail.com> |
|---|---|
| First post | 2016-03-19 15:00 +0100 |
| Last post | 2016-03-19 15:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] genirq: Remove redundent check of NUll'ness of irq_desc Jianyu Zhan <nasa4836@gmail.com> - 2016-03-19 15:00 +0100
| From | Jianyu Zhan <nasa4836@gmail.com> |
|---|---|
| Date | 2016-03-19 15:00 +0100 |
| Subject | [PATCH] genirq: Remove redundent check of NUll'ness of irq_desc |
| Message-ID | <repA6-z7-3@gated-at.bofh.it> |
for_each_irq_desc() macro has already skipped NULL irq_desc, don't
bother to check it again.
Signed-off-by: Jianyu Zhan <nasa4836@gmail.com>
---
kernel/irq/proc.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c
index 4e1b947..50a8f28 100644
--- a/kernel/irq/proc.c
+++ b/kernel/irq/proc.c
@@ -421,12 +421,8 @@ void init_irq_proc(void)
/*
* Create entries for all existing IRQs.
*/
- for_each_irq_desc(irq, desc) {
- if (!desc)
- continue;
-
+ for_each_irq_desc(irq, desc)
register_irq_proc(irq, desc);
- }
}
#ifdef CONFIG_GENERIC_IRQ_SHOW
--
2.4.3
Back to top | Article view | linux.kernel
csiph-web