diff options
author | Dean Nelson <dcn@sgi.com> | 2008-09-05 10:10:40 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:53:07 -0400 |
commit | 21056830c4e5c6735f1d49453398d7186ca4e8d7 (patch) | |
tree | 635346e86f1683e03aaeedbcc5a2907d971f770c /kernel/irq | |
parent | e65ef88c20d5c68bde18f559e0d0ad7d718beb28 (diff) |
irq: set_irq_chip() has redundant call to irq_to_desc()
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>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/chip.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 4ef555c50db8..570d1ea1db5d 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c | |||
@@ -102,7 +102,6 @@ int set_irq_chip(unsigned int irq, struct irq_chip *chip) | |||
102 | if (!chip) | 102 | if (!chip) |
103 | chip = &no_irq_chip; | 103 | chip = &no_irq_chip; |
104 | 104 | ||
105 | desc = irq_to_desc(irq); | ||
106 | spin_lock_irqsave(&desc->lock, flags); | 105 | spin_lock_irqsave(&desc->lock, flags); |
107 | irq_chip_set_defaults(chip); | 106 | irq_chip_set_defaults(chip); |
108 | desc->chip = chip; | 107 | desc->chip = chip; |