projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af8c34c
)
genirq: Remove redundant NULL check of irq_desc
author
Jianyu Zhan
<nasa4836@gmail.com>
Sat, 19 Mar 2016 13:59:19 +0000
(21:59 +0800)
committer
Thomas Gleixner
<tglx@linutronix.de>
Fri, 10 Jun 2016 15:07:49 +0000
(17:07 +0200)
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
patch
|
blob
|
history
diff --git
a/kernel/irq/proc.c
b/kernel/irq/proc.c
index
4e1b947
..
50a8f28
100644
(file)
--- 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