From: Zhao, Yu Date: Mon, 13 Oct 2008 13:02:27 +0000 (+0800) Subject: PCI: remove unused resource assignment in pci_read_bridge_bases() X-Git-Tag: v2.6.28-rc1~2^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a491913ff22c2b69d937d14296db6fa34dbff068;p=linux-2.6-omap-h63xx.git PCI: remove unused resource assignment in pci_read_bridge_bases() This cleanup removes the resource assignment in pci_read_bridge_bases() since it has taken care by pci_alloc_child_bus() when allocating the bus: /* Set up default resource pointers and names.. */ for (i = 0; i < PCI_BRIDGE_RES_NUM; i++) { child->resource[i] = &bridge->resource[PCI_BRIDGE_RESOURCES+i]; child->resource[i]->name = child->name; } Signed-off-by: Yu Zhao Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 6f1e51d77bc..003a9b3c293 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -298,9 +298,6 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child) child->resource[i] = child->parent->resource[i - 3]; } - for(i=0; i<3; i++) - child->resource[i] = &dev->resource[PCI_BRIDGE_RESOURCES+i]; - res = child->resource[0]; pci_read_config_byte(dev, PCI_IO_BASE, &io_base_lo); pci_read_config_byte(dev, PCI_IO_LIMIT, &io_limit_lo);