Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdfe1511 authored by Yijing Wang's avatar Yijing Wang Committed by Bjorn Helgaas
Browse files

PCI: Use pci_is_pcie() to simplify code



Use pci_is_pcie() instead of pci_find_capability() to simplify code.

Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 4a10c2ac
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -641,8 +641,7 @@ static void pci_set_bus_speed(struct pci_bus *bus)
		return;
	}

	pos = pci_find_capability(bridge, PCI_CAP_ID_EXP);
	if (pos) {
	if (pci_is_pcie(bridge)) {
		u32 linkcap;
		u16 linksta;