ASoC: rockchip: i2s-tdm: Fix error handling on i2s_tdm_prepare_enable_mclk failure
In the case where the call to i2s_tdm_prepare_enable_mclk fails the function returns before the error handling goto is executed. Fix this by removing the return do perform the intended error handling exit. Fixes: 081068fd6414 ("ASoC: rockchip: add support for i2s-tdm controller") Addresses-Coverity: ("Structurally dead code") Signed-off-by: Colin Ian King <colin.king@canonical.com> Message-Id: <20211008095430.62680-2-colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
74daadc7fd
commit
cacbce45f5
@ -1736,8 +1736,8 @@ static int rockchip_i2s_tdm_probe(struct platform_device *pdev)
|
||||
|
||||
ret = i2s_tdm_prepare_enable_mclk(i2s_tdm);
|
||||
if (ret) {
|
||||
return dev_err_probe(i2s_tdm->dev, ret,
|
||||
"Failed to enable one or more mclks\n");
|
||||
ret = dev_err_probe(i2s_tdm->dev, ret,
|
||||
"Failed to enable one or more mclks\n");
|
||||
goto err_disable_hclk;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user