PCI ASPM: remove redundant list check
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Wed, 19 Aug 2009 01:58:09 +0000 (10:58 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 9 Sep 2009 20:29:45 +0000 (13:29 -0700)
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>
drivers/pci/pcie/aspm.c

index 9759714f77e778816935486032145ab610c53685..638881b00f6befba93944906b2b3c2670e42c140 100644 (file)
@@ -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_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
         * do ASPM now.