mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
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>
This commit is contained in:
parent
6a4f29bc66
commit
900da53226
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user