[PATCH 1/4] ASoC: stm: stm32_adfsdm: Drop redundant error message

From: phucduc . bui

Date: Mon Jul 20 2026 - 03:41:41 EST


From: bui duc phuc <phucduc.bui@xxxxxxxxx>

devm_snd_soc_register_component() already logs the failure internally.
Drop the redundant error message and return the original error directly.

Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/stm/stm32_adfsdm.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sound/soc/stm/stm32_adfsdm.c b/sound/soc/stm/stm32_adfsdm.c
index 66efb9a0acb9..73c6460a6327 100644
--- a/sound/soc/stm/stm32_adfsdm.c
+++ b/sound/soc/stm/stm32_adfsdm.c
@@ -360,11 +360,8 @@ static int stm32_adfsdm_probe(struct platform_device *pdev)
ret = devm_snd_soc_register_component(&pdev->dev,
&stm32_adfsdm_soc_platform,
NULL, 0);
- if (ret < 0) {
- dev_err(&pdev->dev, "%s: Failed to register PCM platform\n",
- __func__);
+ if (ret < 0)
return ret;
- }

pm_runtime_enable(&pdev->dev);

--
2.43.0