PCI: rockchip: dw: Fix warning in initial progress

1.missing unwind goto
2.Value stored to 'ret' is never read

Fixes: fa919e9611 ("pcie: rockchip: dw: Support dmatest")
Change-Id: I20ae68b97a6512cbb340668b1ffb7811dc6ef674
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin
2023-02-15 14:35:41 +08:00
committed by Tao Huang
parent 3080b1c4e8
commit c544fe878d

View File

@@ -1319,8 +1319,8 @@ static int rk_pcie_phy_init(struct rk_pcie *rk_pcie)
}
if (rk_pcie->bifurcation)
ret = phy_set_mode_ext(rk_pcie->phy, rk_pcie->phy_mode,
PHY_MODE_PCIE_BIFURCATION);
phy_set_mode_ext(rk_pcie->phy, rk_pcie->phy_mode,
PHY_MODE_PCIE_BIFURCATION);
ret = phy_init(rk_pcie->phy);
if (ret < 0) {
@@ -2111,7 +2111,7 @@ retry_regulator:
ret = rk_pcie_init_dma_trx(rk_pcie);
if (ret) {
dev_err(dev, "failed to add dma extension\n");
return ret;
goto remove_irq_domain;
}
if (rk_pcie->dma_obj) {