Skip to content

Commit

Permalink
irq: set_irq_chip() has redundant call to irq_to_desc()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dean Nelson authored and Ingo Molnar committed Oct 16, 2008
1 parent e65ef88 commit 2105683
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kernel/irq/chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2105683

Please sign in to comment.