mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
ASoC: stm: stm32_spdifrx: Drop redundant error messages
Both devm_request_irq() and snd_dmaengine_pcm_register() already log failures internally. Drop the redundant error messages and return the original errors directly. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Link: https://patch.msgid.link/20260720074044.87528-5-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
e502adb1cd
commit
94495c8427
|
|
@ -970,10 +970,8 @@ static int stm32_spdifrx_probe(struct platform_device *pdev)
|
|||
|
||||
ret = devm_request_irq(&pdev->dev, spdifrx->irq, stm32_spdifrx_isr, 0,
|
||||
dev_name(&pdev->dev), spdifrx);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "IRQ request returned %d\n", ret);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
rst = devm_reset_control_get_optional_exclusive(&pdev->dev, NULL);
|
||||
if (IS_ERR(rst))
|
||||
|
|
@ -987,7 +985,7 @@ static int stm32_spdifrx_probe(struct platform_device *pdev)
|
|||
pcm_config = &stm32_spdifrx_pcm_config;
|
||||
ret = snd_dmaengine_pcm_register(&pdev->dev, pcm_config, 0);
|
||||
if (ret)
|
||||
return dev_err_probe(&pdev->dev, ret, "PCM DMA register error\n");
|
||||
return ret;
|
||||
|
||||
ret = snd_soc_register_component(&pdev->dev,
|
||||
&stm32_spdifrx_component,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user