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

Commit 8a339e73 authored by Kenji Kaneshige's avatar Kenji Kaneshige Committed by Jesse Barnes
Browse files

PCI ASPM: remove redundant list check



Remove the following check in __pcie_aspm_config_link() because it
nerver be true.

Acked-by: default avatarShaohua Li <shaohua.li@intel.com>
Signed-off-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent b127bd55
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -458,9 +458,6 @@ static void __pcie_aspm_config_link(struct pcie_link_state *link, u32 state)
	struct pci_dev *child, *parent = link->pdev;
	struct pci_dev *child, *parent = link->pdev;
	struct pci_bus *linkbus = parent->subordinate;
	struct pci_bus *linkbus = parent->subordinate;


	/* If no child, disable the link */
	if (list_empty(&linkbus->devices))
		state = 0;
	/*
	/*
	 * If the downstream component has pci bridge function, don't
	 * If the downstream component has pci bridge function, don't
	 * do ASPM now.
	 * do ASPM now.