提交 65ed0a8d 编写于 作者: D Dan Carpenter 提交者: Mark Brown

ASoC: sti: Fix error handling if of_clk_get() fails

We intended to return here.  The current code has a static checker
warning because we set "ret" but don't use it.

Fixes: 76c2145d ("ASoC: sti: Add CPU DAI driver for playback")
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NArnaud POULIQUEN <arnaud.pouliquen@st.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 d05d862e
......@@ -1074,7 +1074,7 @@ int uni_player_init(struct platform_device *pdev,
player->clk = of_clk_get(pdev->dev.of_node, 0);
if (IS_ERR(player->clk)) {
dev_err(player->dev, "Failed to get clock\n");
ret = PTR_ERR(player->clk);
return PTR_ERR(player->clk);
}
/* Select the frequency synthesizer clock */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册