mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
ASoC: uniphier: Drop redundant error messages in probe
Return the error directly when the helper already reports the failure, avoiding duplicate log messages. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Link: https://patch.msgid.link/20260710110249.31830-1-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
50b2e4bfb4
commit
c89b22faa9
|
|
@ -795,16 +795,12 @@ int uniphier_aio_probe(struct platform_device *pdev)
|
|||
ret = devm_snd_soc_register_component(dev, &uniphier_aio_component,
|
||||
chip->chip_spec->dais,
|
||||
chip->chip_spec->num_dais);
|
||||
if (ret) {
|
||||
dev_err(dev, "Register component failed.\n");
|
||||
if (ret)
|
||||
goto err_out_reset;
|
||||
}
|
||||
|
||||
ret = uniphier_aiodma_soc_register_platform(pdev);
|
||||
if (ret) {
|
||||
dev_err(dev, "Register platform failed.\n");
|
||||
if (ret)
|
||||
goto err_out_reset;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user