Skip to content

Commit 9d8b738

Browse files
committed
PCI: Remove useless comments and tidy others
Remove useless comments and tidy others for better readability. Whitespace changes only. Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent eceb860 commit 9d8b738

File tree

1 file changed

+9
-28
lines changed

1 file changed

+9
-28
lines changed

drivers/pci/probe.c

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,38 +2300,22 @@ void pcie_report_downtraining(struct pci_dev *dev)
23002300

23012301
static void pci_init_capabilities(struct pci_dev *dev)
23022302
{
2303-
/* Enhanced Allocation */
2304-
pci_ea_init(dev);
2303+
pci_ea_init(dev); /* Enhanced Allocation */
23052304

23062305
/* Setup MSI caps & disable MSI/MSI-X interrupts */
23072306
pci_msi_setup_pci_dev(dev);
23082307

23092308
/* Buffers for saving PCIe and PCI-X capabilities */
23102309
pci_allocate_cap_save_buffers(dev);
23112310

2312-
/* Power Management */
2313-
pci_pm_init(dev);
2314-
2315-
/* Vital Product Data */
2316-
pci_vpd_init(dev);
2317-
2318-
/* Alternative Routing-ID Forwarding */
2319-
pci_configure_ari(dev);
2320-
2321-
/* Single Root I/O Virtualization */
2322-
pci_iov_init(dev);
2323-
2324-
/* Address Translation Services */
2325-
pci_ats_init(dev);
2326-
2327-
/* Enable ACS P2P upstream forwarding */
2328-
pci_enable_acs(dev);
2329-
2330-
/* Precision Time Measurement */
2331-
pci_ptm_init(dev);
2332-
2333-
/* Advanced Error Reporting */
2334-
pci_aer_init(dev);
2311+
pci_pm_init(dev); /* Power Management */
2312+
pci_vpd_init(dev); /* Vital Product Data */
2313+
pci_configure_ari(dev); /* Alternative Routing-ID Forwarding */
2314+
pci_iov_init(dev); /* Single Root I/O Virtualization */
2315+
pci_ats_init(dev); /* Address Translation Services */
2316+
pci_enable_acs(dev); /* Enable ACS P2P upstream forwarding */
2317+
pci_ptm_init(dev); /* Precision Time Measurement */
2318+
pci_aer_init(dev); /* Advanced Error Reporting */
23352319

23362320
pcie_report_downtraining(dev);
23372321

@@ -2403,13 +2387,10 @@ void pci_device_add(struct pci_dev *dev, struct pci_bus *bus)
24032387
/* Fix up broken headers */
24042388
pci_fixup_device(pci_fixup_header, dev);
24052389

2406-
/* Moved out from quirk header fixup code */
24072390
pci_reassigndev_resource_alignment(dev);
24082391

2409-
/* Clear the state_saved flag */
24102392
dev->state_saved = false;
24112393

2412-
/* Initialize various capabilities */
24132394
pci_init_capabilities(dev);
24142395

24152396
/*

0 commit comments

Comments
 (0)