PCI: imx6: Consolidate redundant if-checks

Consolidated redundant if-checks pertaining to imx_pcie->phy. Instead of
two separate checks, merged them into one to improve code readability.

Link: https://lore.kernel.org/linux-pci/20240729-pci2_upstream-v8-8-b68ee5ef2b4d@nxp.com
Signed-off-by: Frank Li <Frank.Li@nxp.com>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
This commit is contained in:
Frank Li 2024-07-29 16:18:15 -04:00 committed by Krzysztof Wilczyński
parent 52ac41b5cd
commit eea9ecebe2
No known key found for this signature in database
GPG Key ID: 7C64768D3DE334E7

View File

@ -948,9 +948,7 @@ static int imx_pcie_host_init(struct dw_pcie_rp *pp)
dev_err(dev, "pcie PHY power up failed\n"); dev_err(dev, "pcie PHY power up failed\n");
goto err_clk_disable; goto err_clk_disable;
} }
}
if (imx_pcie->phy) {
ret = phy_power_on(imx_pcie->phy); ret = phy_power_on(imx_pcie->phy);
if (ret) { if (ret) {
dev_err(dev, "waiting for PHY ready timeout!\n"); dev_err(dev, "waiting for PHY ready timeout!\n");