Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1419682 > unrolled thread

[tip:irq/core] genirq: Remove redundant NULL check of irq_desc

Started bytip-bot for Jianyu Zhan <tipbot@zytor.com>
First post2016-06-10 21:50 +0200
Last post2016-06-10 21:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [tip:irq/core] genirq: Remove redundant NULL check of irq_desc tip-bot for Jianyu Zhan <tipbot@zytor.com> - 2016-06-10 21:50 +0200

#1419682 — [tip:irq/core] genirq: Remove redundant NULL check of irq_desc

Fromtip-bot for Jianyu Zhan <tipbot@zytor.com>
Date2016-06-10 21:50 +0200
Subject[tip:irq/core] genirq: Remove redundant NULL check of irq_desc
Message-ID<rIABj-Hr-11@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web