mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 02:26:56 +07:00
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: 76c2145ded
("ASoC: sti: Add CPU DAI driver for playback")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Arnaud POULIQUEN <arnaud.pouliquen@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d05d862ead
commit
65ed0a8d1f
@ -1074,7 +1074,7 @@ int uni_player_init(struct platform_device *pdev,
|
|||||||
player->clk = of_clk_get(pdev->dev.of_node, 0);
|
player->clk = of_clk_get(pdev->dev.of_node, 0);
|
||||||
if (IS_ERR(player->clk)) {
|
if (IS_ERR(player->clk)) {
|
||||||
dev_err(player->dev, "Failed to get clock\n");
|
dev_err(player->dev, "Failed to get clock\n");
|
||||||
ret = PTR_ERR(player->clk);
|
return PTR_ERR(player->clk);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Select the frequency synthesizer clock */
|
/* Select the frequency synthesizer clock */
|
||||||
|
Loading…
Reference in New Issue
Block a user