summaryrefslogtreecommitdiff
path: root/kernel/irq
diff options
context:
space:
mode:
authorDean Nelson <dcn@sgi.com>2008-09-05 18:10:40 +0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 18:53:07 +0400
commit21056830c4e5c6735f1d49453398d7186ca4e8d7 (patch)
tree635346e86f1683e03aaeedbcc5a2907d971f770c /kernel/irq
parente65ef88c20d5c68bde18f559e0d0ad7d718beb28 (diff)
downloadlinux-21056830c4e5c6735f1d49453398d7186ca4e8d7.tar.xz
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.c1
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)
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;