]> git.hungrycats.org Git - linux/commitdiff
ASoC: rockchip: spdif: Return the original error code
authorbui duc phuc <phucduc.bui@gmail.com>
Thu, 6 Aug 2026 05:21:36 +0000 (12:21 +0700)
committerMark Brown <broonie@kernel.org>
Thu, 13 Aug 2026 14:46:08 +0000 (15:46 +0100)
Return the original error code directly and drop the redundant error
message since the called function already reports the failure.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Link: https://patch.msgid.link/20260806052136.21034-15-phucduc.bui@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_spdif.c

index 7f15bc7f8f35a334219fe2777fe5a4e22396ffb4..2d53efd5dd2e3b4fc48e5f6183e0c6decf61d6d2 100644 (file)
@@ -396,13 +396,13 @@ static int rk_spdif_probe(struct platform_device *pdev)
 
        ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
        if (ret)
-               return dev_err_probe(&pdev->dev, ret, "Could not register PCM\n");
+               return ret;
 
        ret = devm_snd_soc_register_component(&pdev->dev,
                                              &rk_spdif_component,
                                              &rk_spdif_dai, 1);
        if (ret)
-               return dev_err_probe(&pdev->dev, ret, "Could not register DAI\n");
+               return ret;
 
        return 0;
 }