genirq: Remove redundent check of NUll'ness of irq_desc
PATCH 1/1 genirq: Remove redundent check of NUll'ness 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 <[email protected]>
--- kernel/irq/proc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
kernel/irq/proc.c +1 -5
@@ -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
Signature · 1 line
2.4.3
tip-bot for Jianyu Zhan
merge bot[tip:irq/core] genirq: Remove redundant NULL check of irq_desc
genirq: Remove redundant NULL check of irq_desc
Commit-ID: fe3464ca8710012a247bb4586dde21b080f88514 Gitweb: http://git.kernel.org/tip/fe3464ca8710012a247bb4586dde21b080f88514 Author: Jianyu Zhan <[email protected]> AuthorDate: Sat, 19 Mar 2016 21:59:19 +0800 Committer: Thomas Gleixner <[email protected]> CommitDate: Fri, 10 Jun 2016 17:07:49 +0200
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 <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
--- kernel/irq/proc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
kernel/irq/proc.c +1 -5
@@ -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