ARM: fix mach-versatile/pci.c warning
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 4 Jul 2012 16:04:57 +0000 (17:04 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 4 Jul 2012 16:04:57 +0000 (17:04 +0100)
arch/arm/mach-versatile/pci.c: In function 'versatile_map_irq':
arch/arm/mach-versatile/pci.c:342: warning: unused variable 'devslot'

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-versatile/pci.c

index bec933b04ef04bebcac7d312b46f710b9ce3a9e3..e95bf84cc837550650ccc053e5afc72486d6682a 100644 (file)
@@ -339,7 +339,6 @@ void __init pci_versatile_preinit(void)
 static int __init versatile_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
 {
        int irq;
-       int devslot = PCI_SLOT(dev->devfn);
 
        /* slot,  pin,  irq
         *  24     1     27