Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 7317/1: irq: avoid NULL check in for_each_irq_desc loop

ARM unconditionally selects CONFIG_GENERIC_HARDIRQS, so the definition
of for_each_irq_desc will check that the desc is non-NULL anyway.

This patch removes a redundant check from the IRQ migration code.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Will Deacon and committed by
Russell King
342d00ae d33c88c6

+1 -4
+1 -4
arch/arm/kernel/irq.c
··· 181 181 local_irq_save(flags); 182 182 183 183 for_each_irq_desc(i, desc) { 184 - bool affinity_broken = false; 185 - 186 - if (!desc) 187 - continue; 184 + bool affinity_broken; 188 185 189 186 raw_spin_lock(&desc->lock); 190 187 affinity_broken = migrate_one_irq(desc);