[PATCH] set_irq_chip() has redundant call to irq_to_desc()

From: Dean Nelson
Date: Fri Sep 05 2008 - 10:10:55 EST


Extraneous call to irq_to_desc().

Signed-off-by: Dean Nelson <dcn@xxxxxxx>

---

kernel/irq/chip.c | 1 -
1 file changed, 1 deletion(-)

Index: linux/kernel/irq/chip.c
===================================================================
--- linux.orig/kernel/irq/chip.c 2008-09-05 08:04:21.000000000 -0500
+++ linux/kernel/irq/chip.c 2008-09-05 08:16:58.000000000 -0500
@@ -102,7 +102,6 @@ int set_irq_chip(unsigned int irq, struc
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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/