diff options
author | Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> | 2009-08-18 21:58:09 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-09-09 16:29:45 -0400 |
commit | 8a339e7321f10dc2f28928ffadb69b6c7c2d5c3b (patch) | |
tree | b89669aed567cced569a0eb1fcb557268f608cee /drivers/pci | |
parent | b127bd55d9cd9d5b40278b30645669d6d46933bc (diff) |
PCI ASPM: remove redundant list check
Remove the following check in __pcie_aspm_config_link() because it
nerver be true.
Acked-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pcie/aspm.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c index 9759714f77e7..638881b00f6b 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c | |||
@@ -458,9 +458,6 @@ static void __pcie_aspm_config_link(struct pcie_link_state *link, u32 state) | |||
458 | struct pci_dev *child, *parent = link->pdev; | 458 | struct pci_dev *child, *parent = link->pdev; |
459 | struct pci_bus *linkbus = parent->subordinate; | 459 | struct pci_bus *linkbus = parent->subordinate; |
460 | 460 | ||
461 | /* If no child, disable the link */ | ||
462 | if (list_empty(&linkbus->devices)) | ||
463 | state = 0; | ||
464 | /* | 461 | /* |
465 | * If the downstream component has pci bridge function, don't | 462 | * If the downstream component has pci bridge function, don't |
466 | * do ASPM now. | 463 | * do ASPM now. |