Skip to content

Commit

Permalink
ARM: 7317/1: irq: avoid NULL check in for_each_irq_desc loop
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Will Deacon authored and Russell King committed Mar 24, 2012
1 parent d33c88c commit 342d00a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/arm/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,7 @@ void migrate_irqs(void)
local_irq_save(flags);

for_each_irq_desc(i, desc) {
bool affinity_broken = false;

if (!desc)
continue;
bool affinity_broken;

raw_spin_lock(&desc->lock);
affinity_broken = migrate_one_irq(desc);
Expand Down

0 comments on commit 342d00a

Please sign in to comment.