Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe3464ca authored by Jianyu Zhan's avatar Jianyu Zhan Committed by Thomas Gleixner
Browse files

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: default avatarJianyu 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: default avatarThomas Gleixner <tglx@linutronix.de>
parent af8c34ce
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -421,13 +421,9 @@ 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