Commit 1798acef authored by Tang Bin's avatar Tang Bin Committed by Mark Brown

ASoC: loongson: remove redundant variable assignments

In the function loongson_asoc_card_probe, it is simpler
to return the value of function devm_snd_soc_register_card
directly.
Signed-off-by: default avatarTang Bin <tangbin@cmss.chinamobile.com>
Link: https://patch.msgid.link/20240906100523.2142-1-tangbin@cmss.chinamobile.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 813751ea
......@@ -192,9 +192,7 @@ static int loongson_asoc_card_probe(struct platform_device *pdev)
if (ret < 0)
return ret;
ret = devm_snd_soc_register_card(&pdev->dev, card);
return ret;
return devm_snd_soc_register_card(&pdev->dev, card);
}
static const struct of_device_id loongson_asoc_dt_ids[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment