Skip to content

Commit a491913

Browse files
tylerzhao7684jbarnes993
authored andcommitted
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 <[email protected]> Signed-off-by: Jesse Barnes <[email protected]>
1 parent be7bce2 commit a491913

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/pci/probe.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,6 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child)
298298
child->resource[i] = child->parent->resource[i - 3];
299299
}
300300

301-
for(i=0; i<3; i++)
302-
child->resource[i] = &dev->resource[PCI_BRIDGE_RESOURCES+i];
303-
304301
res = child->resource[0];
305302
pci_read_config_byte(dev, PCI_IO_BASE, &io_base_lo);
306303
pci_read_config_byte(dev, PCI_IO_LIMIT, &io_limit_lo);

0 commit comments

Comments
 (0)