[PATCH 3/3] ASoC: mediatek: mt8173: Drop redundant probe error messages

From: phucduc . bui

Date: Tue Aug 18 2026 - 06:46:06 EST


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

The errors handled here are already reported by the called functions,
either directly or deeper in the call chain. Therefore, the additional
dev_err() calls are redundant and can be removed.

Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c b/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
index b7c4b24a9cad..c2421f17375b 100644
--- a/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
+++ b/sound/soc/mediatek/mt8173/mt8173-afe-pcm.c
@@ -1091,10 +1091,8 @@ static int mt8173_afe_pcm_dev_probe(struct platform_device *pdev)

/* initial audio related clock */
ret = mt8173_afe_init_audio_clk(afe);
- if (ret) {
- dev_err(dev, "mt8173_afe_init_audio_clk fail\n");
+ if (ret)
return ret;
- }

/* memif % irq initialize*/
afe->memif_size = MT8173_AFE_MEMIF_NUM;
@@ -1154,10 +1152,8 @@ static int mt8173_afe_pcm_dev_probe(struct platform_device *pdev)

ret = devm_request_irq(dev, irq_id, mt8173_afe_irq_handler,
0, "Afe_ISR_Handle", (void *)afe);
- if (ret) {
- dev_err(dev, "could not request_irq\n");
+ if (ret)
goto err_cleanup_components;
- }

dev_info(dev, "MT8173 AFE driver initialized.\n");
return 0;
--
2.43.0