]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
irq: set_irq_chip() has redundant call to irq_to_desc()
authorDean Nelson <dcn@sgi.com>
Fri, 5 Sep 2008 14:10:40 +0000 (09:10 -0500)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:07 +0000 (16:53 +0200)
Extraneous call to irq_to_desc().

Signed-off-by: Dean Nelson <dcn@sgi.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/irq/chip.c

index 4ef555c50db8da27f02106e1ca50e656ad47e6bb..570d1ea1db5daee44bff774b3e8cc8a37b717f1b 100644 (file)
@@ -102,7 +102,6 @@ int set_irq_chip(unsigned int irq, struct irq_chip *chip)
        if (!chip)
                chip = &no_irq_chip;
 
-       desc = irq_to_desc(irq);
        spin_lock_irqsave(&desc->lock, flags);
        irq_chip_set_defaults(chip);
        desc->chip = chip;