Commit affbda86 authored by Bjorn Helgaas's avatar Bjorn Helgaas

x86/PCI: Reword comments

Reword comments so they make sense.
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 8928d5a6
...@@ -519,15 +519,12 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) ...@@ -519,15 +519,12 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
sd->domain = domain; sd->domain = domain;
sd->node = node; sd->node = node;
sd->companion = device; sd->companion = device;
/*
* Maybe the desired pci bus has been already scanned. In such case
* it is unnecessary to scan the pci bus with the given domain,busnum.
*/
bus = pci_find_bus(domain, busnum); bus = pci_find_bus(domain, busnum);
if (bus) { if (bus) {
/* /*
* If the desired bus exits, the content of bus->sysdata will * If the desired bus has been scanned already, replace
* be replaced by sd. * its bus->sysdata.
*/ */
memcpy(bus->sysdata, sd, sizeof(*sd)); memcpy(bus->sysdata, sd, sizeof(*sd));
kfree(info); kfree(info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment