PCI/ASPM: Remove unnecessary ASPM_STATE_L1SS check
authorAjay Agarwal <ajayagarwal@google.com>
Thu, 4 May 2023 11:13:01 +0000 (16:43 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 19 May 2023 15:29:40 +0000 (10:29 -0500)
commit911afb9f9516a8ea2db1d15b18436c19a591dc5c
treee928768fc27436bd0f9f99af8cbb24ffcde2be12
parent05a55d9ca1457295db73f127e39ec3b18f0b32b2
PCI/ASPM: Remove unnecessary ASPM_STATE_L1SS check

Previously aspm_l1ss_init() checked if ASPM_STATE_L1SS is supported before
calling aspm_calc_l12_info(), only for that function to return if
ASPM_STATE_L1_2_MASK is not supported. Simplify the logic by directly
checking for ASPM_STATE_L1_2_MASK.

Link: https://lore.kernel.org/r/20230504111301.229358-6-ajayagarwal@google.com
Signed-off-by: Ajay Agarwal <ajayagarwal@google.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aspm.c