[PATCH 2/4] ASoC: starfive: jh7110-pwmdac: Drop redundant error messages
From: phucduc . bui
Date: Thu Jul 23 2026 - 07:12:37 EST
From: bui duc phuc <phucduc.bui@xxxxxxxxx>
The called functions already log failures where appropriate. Return the
original error directly and avoid duplicate error messages.
Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/starfive/jh7110_pwmdac.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/starfive/jh7110_pwmdac.c b/sound/soc/starfive/jh7110_pwmdac.c
index 562936981cf0..5953c3a4e373 100644
--- a/sound/soc/starfive/jh7110_pwmdac.c
+++ b/sound/soc/starfive/jh7110_pwmdac.c
@@ -477,11 +477,11 @@ static int jh7110_pwmdac_probe(struct platform_device *pdev)
&jh7110_pwmdac_component,
&jh7110_pwmdac_dai, 1);
if (ret)
- return dev_err_probe(&pdev->dev, ret, "failed to register dai\n");
+ return ret;
ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
if (ret)
- return dev_err_probe(&pdev->dev, ret, "failed to register pcm\n");
+ return ret;
pm_runtime_enable(dev->dev);
if (!pm_runtime_enabled(&pdev->dev)) {
--
2.43.0