diff options
author | Jianyu Zhan <nasa4836@gmail.com> | 2016-03-19 21:59:19 +0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-06-10 17:07:49 +0200 |
commit | fe3464ca8710012a247bb4586dde21b080f88514 (patch) | |
tree | b3621e916fc220903f321d13e5b48705d7eaff67 /kernel/irq/proc.c | |
parent | af8c34ce6ae32addda3788d54a7e340cad22516b (diff) | |
download | linux-fe3464ca8710012a247bb4586dde21b080f88514.tar.gz linux-fe3464ca8710012a247bb4586dde21b080f88514.tar.bz2 linux-fe3464ca8710012a247bb4586dde21b080f88514.zip |
genirq: Remove redundant NULL check of irq_desc
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>
Cc: mingo@kernel.org
Cc: yhlu.kernel@gmail.com
Link: http://lkml.kernel.org/r/1458395959-7046-1-git-send-email-nasa4836@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/proc.c')
-rw-r--r-- | kernel/irq/proc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c index 4e1b94726818..50a8f28be247 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 |