Skip to content

Commit 5fe8d08

Browse files
ij-intelbjorn-helgaas
authored andcommitted
PCI: Use PCI_STD_NUM_BARS instead of 6
pci_read_bases() is given literal 6 that means PCI_STD_NUM_BARS. Replace the literal with the define to annotate the code better. Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Niklas Cassel <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 74a70e8 commit 5fe8d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/probe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2058,7 +2058,7 @@ int pci_setup_device(struct pci_dev *dev)
20582058
if (class == PCI_CLASS_BRIDGE_PCI)
20592059
goto bad;
20602060
pci_read_irq(dev);
2061-
pci_read_bases(dev, 6, PCI_ROM_ADDRESS);
2061+
pci_read_bases(dev, PCI_STD_NUM_BARS, PCI_ROM_ADDRESS);
20622062

20632063
pci_subsystem_ids(dev, &dev->subsystem_vendor, &dev->subsystem_device);
20642064

0 commit comments

Comments
 (0)