Skip to content

Commit eea9ece

Browse files
nxpfranklikwilczynski
authored andcommitted
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/[email protected] Signed-off-by: Frank Li <[email protected]> [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]>
1 parent 52ac41b commit eea9ece

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/pci/controller/dwc/pci-imx6.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,9 +948,7 @@ static int imx_pcie_host_init(struct dw_pcie_rp *pp)
948948
dev_err(dev, "pcie PHY power up failed\n");
949949
goto err_clk_disable;
950950
}
951-
}
952951

953-
if (imx_pcie->phy) {
954952
ret = phy_power_on(imx_pcie->phy);
955953
if (ret) {
956954
dev_err(dev, "waiting for PHY ready timeout!\n");

0 commit comments

Comments
 (0)