* Re: [PATCH] Fix a sparse warning in arch/mips/pci/pci.c
2007-07-12 16:26 [PATCH] Fix a sparse warning in arch/mips/pci/pci.c Atsushi Nemoto
@ 2007-07-12 16:24 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2007-07-12 16:24 UTC (permalink / raw)
To: Atsushi Nemoto; +Cc: linux-mips
On Fri, Jul 13, 2007 at 01:26:52AM +0900, Atsushi Nemoto wrote:
> 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
Thanks, applied.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] Fix a sparse warning in arch/mips/pci/pci.c
@ 2007-07-12 16:26 Atsushi Nemoto
2007-07-12 16:24 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2007-07-12 16:26 UTC (permalink / raw)
To: linux-mips; +Cc: ralf
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>
---
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
index 67e01fd..25e4959 100644
--- a/arch/mips/pci/pci.c
+++ b/arch/mips/pci/pci.c
@@ -281,7 +281,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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-12 16:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-12 16:26 [PATCH] Fix a sparse warning in arch/mips/pci/pci.c Atsushi Nemoto
2007-07-12 16:24 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox