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:
bui duc phuc 2026-07-10 18:02:49 +07:00 committed by Mark Brown
parent 50b2e4bfb4
commit c89b22faa9
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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;