[PATCH v2 4/6] ASoC: samsung: pcm: Drop redundant probe error messages

From: phucduc . bui

Date: Wed Aug 12 2026 - 04:59:13 EST


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

The functions called here don't log the error themselves, but the
error is already reported deeper in the call chain, so the dev_err()
calls are redundant and can be removed.

Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---

Changes in v2:
- Update the commit message.

sound/soc/samsung/pcm.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c
index 7e7284125c3e..8430686760d7 100644
--- a/sound/soc/samsung/pcm.c
+++ b/sound/soc/samsung/pcm.c
@@ -534,19 +534,15 @@ static int s3c_pcm_dev_probe(struct platform_device *pdev)

ret = samsung_asoc_dma_platform_register(&pdev->dev, filter,
NULL, NULL, NULL);
- if (ret) {
- dev_err(&pdev->dev, "failed to get register DMA: %d\n", ret);
+ if (ret)
goto err_dis_pclk;
- }

pm_runtime_enable(&pdev->dev);

ret = devm_snd_soc_register_component(&pdev->dev, &s3c_pcm_component,
&s3c_pcm_dai[pdev->id], 1);
- if (ret != 0) {
- dev_err(&pdev->dev, "failed to get register DAI: %d\n", ret);
+ if (ret != 0)
goto err_dis_pm;
- }

return 0;

--
2.43.0