mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user