]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rockchip: i2s-tdm: Fix error handling on i2s_tdm_prepare_enable_mclk failure
authorColin Ian King <colin.king@canonical.com>
Fri, 8 Oct 2021 09:54:30 +0000 (10:54 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 8 Oct 2021 16:22:52 +0000 (17:22 +0100)
commit08c3d0c7e0f26368b30d3c5e790d3355e26bcdc7
tree4ed229ed3148fb1f74fbc3e5d78b42536e5ff1f4
parentd424fed976d47823c705a55781ab72b90d1c3d99
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: c4f884767a38 ("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>
sound/soc/rockchip/rockchip_i2s_tdm.c