Skip to content

Commit

Permalink
irqdomain: Remove unnecessary test for IRQ_DOMAIN_MAP_LEGACY
Browse files Browse the repository at this point in the history
Where irq_domain_associate() is called in irq_create_mapping, there is
no need to test for IRQ_DOMAIN_MAP_LEGACY because it is already tested
for earlier in the routine.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Rob Herring <rob.herring@calxeda.com>
  • Loading branch information
Grant Likely committed Jun 15, 2012
1 parent 5ca4db6 commit 7325570
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/irq/irqdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,7 @@ unsigned int irq_create_mapping(struct irq_domain *domain,
}

if (irq_setup_virq(domain, virq, hwirq)) {
if (domain->revmap_type != IRQ_DOMAIN_MAP_LEGACY)
irq_free_desc(virq);
irq_free_desc(virq);
return 0;
}

Expand Down

0 comments on commit 7325570

Please sign in to comment.