From: Will Deacon Date: Fri, 3 Feb 2012 13:50:07 +0000 (+0100) Subject: ARM: 7317/1: irq: avoid NULL check in for_each_irq_desc loop X-Git-Tag: MMI-PSA29.97-13-9~17118^2~1^3~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=342d00ae2b85af003f11036484a33e12e906fe92;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 3efd82cc95f0..3f86ee11f54e 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c @@ -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);