Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: rockchip: i2s-tdm: Omit a variable reassignment in rockchip_i2s_tdm_probe()

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.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Link: https://patch.msgid.link/115fba03-e8ba-4bc1-84d8-7d483c06208c@web.de
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Markus Elfring and committed by
Mark Brown
900da532 6a4f29bc

+1 -2
+1 -2
sound/soc/rockchip/rockchip_i2s_tdm.c
··· 1337 1337 1338 1338 ret = i2s_tdm_prepare_enable_mclk(i2s_tdm); 1339 1339 if (ret) { 1340 - ret = dev_err_probe(i2s_tdm->dev, ret, 1341 - "Failed to enable one or more mclks\n"); 1340 + dev_err_probe(i2s_tdm->dev, ret, "Failed to enable one or more mclks\n"); 1342 1341 goto err_disable_hclk; 1343 1342 } 1344 1343