mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
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:
parent
52ac41b5cd
commit
eea9ecebe2
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user