ASoC: rockchip: i2s-tdm: Omit a variable reassignment in rockchip_i2s_tdm_probe()
Subsystems (4)
PATCH 1/1 ASoC: rockchip: i2s-tdm: Omit a variable reassignment in rockchip_i2s_tdm_probe()
From: Markus Elfring <[email protected]>
Date: Mon, 20 Oct 2025 18:11:58 +0200
An error code was assigned to a variable and checked accordingly. This value was passed to a dev_err_probe() call in an if branch. This function is documented in the way that the same value is returned. Thus delete a redundant variable reassignment.
The source code was transformed by using the Coccinelle software.
--- sound/soc/rockchip/rockchip_i2s_tdm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/rockchip/rockchip_i2s_tdm.c +1 -2
@@ -1337,8 +1337,7 @@ static int rockchip_i2s_tdm_probe(struct platform_device *pdev) ret =i2s_tdm_prepare_enable_mclk (i2s_tdm);if (ret) { - ret =dev_err_probe (i2s_tdm->dev, ret, -"Failed to enable one or more mclks\n" ); +dev_err_probe (i2s_tdm->dev, ret,"Failed to enable one or more mclks\n" ); goto err_disable_hclk; }
Signature · 1 line
2.51.1
Mark Brown
maintainerQuoted 8 lines · Markus Elfring
An error code was assigned to a variable and checked accordingly. This value was passed to a
dev_err_probe()call in an if branch. This function is documented in the way that the same value is returned. Thus delete a redundant variable reassignment.The source code was transformed by using the Coccinelle software.
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: rockchip: i2s-tdm: Omit a variable reassignment in rockchip_i2s_tdm_probe()
commit: 900da53226121c1e710ca95857806a136ab281a2
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark