commit | f9b8cd7c2710813746f86eec6bbf12c869504285 | [log] [tgz] |
---|---|---|
author | Yijing Wang <wangyijing@huawei.com> | Tue May 19 11:41:34 2015 +0800 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Wed May 20 12:28:11 2015 -0500 |
tree | c5cf075cc536f4ac10a10770e67810fbdd4f115b | |
parent | e127a04f222fc4ad958a9bca35100883b8b1373b [diff] |
PCI/ASPM: Remove redundant PCIe port type checking We decide in alloc_pcie_link_state() whether to allocate a pcie_link_state for a device. After that, it's sufficient to check pdev->link_state. We don't need to check the PCIe port type again. Remove the redundant PCIe port type checking. [bhelgaas: changelog] Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>