* [PATCH] genirq: Remove redundent check of NUll'ness of irq_desc
@ 2016-03-19 13:59 Jianyu Zhan
2016-06-10 19:46 ` [tip:irq/core] genirq: Remove redundant NULL check " tip-bot for Jianyu Zhan
0 siblings, 1 reply; 2+ messages in thread
From: Jianyu Zhan @ 2016-03-19 13:59 UTC (permalink / raw)
To: tglx, mingo, yhlu.kernel; +Cc: linux-kernel, Jianyu Zhan
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip:irq/core] genirq: Remove redundant NULL check of irq_desc
2016-03-19 13:59 [PATCH] genirq: Remove redundent check of NUll'ness of irq_desc Jianyu Zhan
@ 2016-06-10 19:46 ` tip-bot for Jianyu Zhan
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Jianyu Zhan @ 2016-06-10 19:46 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, mingo, tglx, nasa4836, hpa
Commit-ID: fe3464ca8710012a247bb4586dde21b080f88514
Gitweb: http://git.kernel.org/tip/fe3464ca8710012a247bb4586dde21b080f88514
Author: Jianyu Zhan <nasa4836@gmail.com>
AuthorDate: Sat, 19 Mar 2016 21:59:19 +0800
Committer: Thomas Gleixner <tglx@linutronix.de>
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 <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>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-10 19:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-19 13:59 [PATCH] genirq: Remove redundent check of NUll'ness of irq_desc Jianyu Zhan
2016-06-10 19:46 ` [tip:irq/core] genirq: Remove redundant NULL check " tip-bot for Jianyu Zhan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).