Skip to content

Commit 342d00a

Browse files
wildea01Russell King
authored andcommitted
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>
1 parent d33c88c commit 342d00a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎arch/arm/kernel/irq.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,7 @@ void migrate_irqs(void)
181181
local_irq_save(flags);
182182

183183
for_each_irq_desc(i, desc) {
184-
bool affinity_broken = false;
185-
186-
if (!desc)
187-
continue;
184+
bool affinity_broken;
188185

189186
raw_spin_lock(&desc->lock);
190187
affinity_broken = migrate_one_irq(desc);

0 commit comments

Comments
 (0)