[PATCH] ASoC: uniphier: Drop redundant error messages in probe
From: phucduc . bui
Date: Fri Jul 10 2026 - 07:09:37 EST
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
Return the error directly when the helper already reports the failure,
avoiding duplicate log messages.
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/uniphier/aio-cpu.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/sound/soc/uniphier/aio-cpu.c b/sound/soc/uniphier/aio-cpu.c
index d3dba21b2d04..78c82bf42a8f 100644
--- a/sound/soc/uniphier/aio-cpu.c
+++ b/sound/soc/uniphier/aio-cpu.c
@@ -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;
--
2.43.0