]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Fix a sparse warning in arch/mips/pci/pci.c
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Thu, 12 Jul 2007 16:26:52 +0000 (01:26 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 12 Jul 2007 16:41:17 +0000 (17:41 +0100)
Fixes this warning:

arch/mips/pci/pci.c:284:18: warning: symbol 'dev' shadows an earlier one
arch/mips/pci/pci.c:272:17: originally declared here

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci.c

index 8108231f2e20909ed0057a792a4f3265827fac8f..99d8f4fd3ff4956878a925c214c3eb3e9e60832e 100644 (file)
@@ -269,7 +269,7 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus)
        }
 
        for (ln = bus->devices.next; ln != &bus->devices; ln = ln->next) {
-               struct pci_dev *dev = pci_dev_b(ln);
+               dev = pci_dev_b(ln);
 
                if ((dev->class >> 8) != PCI_CLASS_BRIDGE_PCI)
                        pcibios_fixup_device_resources(dev, bus);