PCI/ASPM: Remove redundant PCIe port type checking
authorYijing Wang <wangyijing@huawei.com>
Tue, 19 May 2015 03:41:34 +0000 (11:41 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 20 May 2015 17:28:11 +0000 (12:28 -0500)
commitf9b8cd7c2710813746f86eec6bbf12c869504285
treec5cf075cc536f4ac10a10770e67810fbdd4f115b
parente127a04f222fc4ad958a9bca35100883b8b1373b
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>
drivers/pci/pcie/aspm.c