Skip to content

Commit 75203e7

Browse files
Chunfeng Yunvinodkoul
authored andcommitted
phy: phy-mtk-mipi-dsi: remove dummy assignment of error number
Return the error number directly without assignment Acked-by: Chun-Kuang Hu <[email protected]> Signed-off-by: Chunfeng Yun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 9474458 commit 75203e7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/phy/mediatek/phy-mtk-mipi-dsi.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,8 @@ static int mtk_mipi_tx_probe(struct platform_device *pdev)
203203
phy_set_drvdata(phy, mipi_tx);
204204

205205
phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);
206-
if (IS_ERR(phy_provider)) {
207-
ret = PTR_ERR(phy_provider);
208-
return ret;
209-
}
206+
if (IS_ERR(phy_provider))
207+
return PTR_ERR(phy_provider);
210208

211209
mipi_tx->dev = dev;
212210

0 commit comments

Comments
 (0)