Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: qcom-qmp-pcie: drop if (table) conditions

Drop unused if (table) conditions, since the function
qcom_qmp_phy_pcie_configure_lane() has this check anyway.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220906074550.4383-2-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Dmitry Baryshkov and committed by
Vinod Koul
95153de6 02887b04

+7 -14
+7 -14
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
··· 1930 1930 int serdes_tbl_num = cfg->serdes_tbl_num; 1931 1931 1932 1932 qcom_qmp_phy_pcie_configure(serdes, cfg->regs, serdes_tbl, serdes_tbl_num); 1933 - if (cfg->serdes_tbl_sec) 1934 - qcom_qmp_phy_pcie_configure(serdes, cfg->regs, cfg->serdes_tbl_sec, 1933 + qcom_qmp_phy_pcie_configure(serdes, cfg->regs, cfg->serdes_tbl_sec, 1935 1934 cfg->serdes_tbl_num_sec); 1936 1935 1937 1936 return 0; ··· 2036 2037 /* Tx, Rx, and PCS configurations */ 2037 2038 qcom_qmp_phy_pcie_configure_lane(tx, cfg->regs, 2038 2039 cfg->tx_tbl, cfg->tx_tbl_num, 1); 2039 - if (cfg->tx_tbl_sec) 2040 - qcom_qmp_phy_pcie_configure_lane(tx, cfg->regs, cfg->tx_tbl_sec, 2040 + qcom_qmp_phy_pcie_configure_lane(tx, cfg->regs, cfg->tx_tbl_sec, 2041 2041 cfg->tx_tbl_num_sec, 1); 2042 2042 2043 2043 /* Configuration for other LANE for USB-DP combo PHY */ 2044 2044 if (cfg->is_dual_lane_phy) { 2045 2045 qcom_qmp_phy_pcie_configure_lane(qphy->tx2, cfg->regs, 2046 2046 cfg->tx_tbl, cfg->tx_tbl_num, 2); 2047 - if (cfg->tx_tbl_sec) 2048 - qcom_qmp_phy_pcie_configure_lane(qphy->tx2, cfg->regs, 2047 + qcom_qmp_phy_pcie_configure_lane(qphy->tx2, cfg->regs, 2049 2048 cfg->tx_tbl_sec, 2050 2049 cfg->tx_tbl_num_sec, 2); 2051 2050 } 2052 2051 2053 2052 qcom_qmp_phy_pcie_configure_lane(rx, cfg->regs, 2054 2053 cfg->rx_tbl, cfg->rx_tbl_num, 1); 2055 - if (cfg->rx_tbl_sec) 2056 - qcom_qmp_phy_pcie_configure_lane(rx, cfg->regs, 2054 + qcom_qmp_phy_pcie_configure_lane(rx, cfg->regs, 2057 2055 cfg->rx_tbl_sec, cfg->rx_tbl_num_sec, 1); 2058 2056 2059 2057 if (cfg->is_dual_lane_phy) { 2060 2058 qcom_qmp_phy_pcie_configure_lane(qphy->rx2, cfg->regs, 2061 2059 cfg->rx_tbl, cfg->rx_tbl_num, 2); 2062 - if (cfg->rx_tbl_sec) 2063 - qcom_qmp_phy_pcie_configure_lane(qphy->rx2, cfg->regs, 2060 + qcom_qmp_phy_pcie_configure_lane(qphy->rx2, cfg->regs, 2064 2061 cfg->rx_tbl_sec, 2065 2062 cfg->rx_tbl_num_sec, 2); 2066 2063 } 2067 2064 2068 2065 qcom_qmp_phy_pcie_configure(pcs, cfg->regs, cfg->pcs_tbl, cfg->pcs_tbl_num); 2069 - if (cfg->pcs_tbl_sec) 2070 - qcom_qmp_phy_pcie_configure(pcs, cfg->regs, cfg->pcs_tbl_sec, 2066 + qcom_qmp_phy_pcie_configure(pcs, cfg->regs, cfg->pcs_tbl_sec, 2071 2067 cfg->pcs_tbl_num_sec); 2072 2068 2073 2069 qcom_qmp_phy_pcie_configure(pcs_misc, cfg->regs, cfg->pcs_misc_tbl, 2074 2070 cfg->pcs_misc_tbl_num); 2075 - if (cfg->pcs_misc_tbl_sec) 2076 - qcom_qmp_phy_pcie_configure(pcs_misc, cfg->regs, cfg->pcs_misc_tbl_sec, 2071 + qcom_qmp_phy_pcie_configure(pcs_misc, cfg->regs, cfg->pcs_misc_tbl_sec, 2077 2072 cfg->pcs_misc_tbl_num_sec); 2078 2073 2079 2074 /*