ARM: 7317/1: irq: avoid NULL check in for_each_irq_desc loop
authorWill Deacon <will.deacon@arm.com>
Fri, 3 Feb 2012 13:50:07 +0000 (14:50 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 24 Mar 2012 09:38:53 +0000 (09:38 +0000)
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>
arch/arm/kernel/irq.c

index 3efd82cc95f06a8196b6a20e8c9fa65121d66009..3f86ee11f54e6bde633740405d4eb44bb4999f11 100644 (file)
@@ -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);