]> git.hungrycats.org Git - linux/commitdiff
ASoC: rockchip: rockchip_i2s: Drop redundant probe error messages
authorbui duc phuc <phucduc.bui@gmail.com>
Thu, 6 Aug 2026 05:21:26 +0000 (12:21 +0700)
committerMark Brown <broonie@kernel.org>
Thu, 13 Aug 2026 14:45:59 +0000 (15:45 +0100)
Remove the probe error messages to avoid duplicate error reporting,
since the error is already reported by the called functions.

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

index 3e8d07b3fc1ebf6d03706e709d8214c8033b00e5..354430f916f9fe69fe6d538b6c467608e2b436f4 100644 (file)
@@ -829,16 +829,12 @@ static int rockchip_i2s_probe(struct platform_device *pdev)
                                              &rockchip_i2s_component,
                                              dai, 1);
 
-       if (ret) {
-               dev_err(&pdev->dev, "Could not register DAI\n");
+       if (ret)
                return ret;
-       }
 
        ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
-       if (ret) {
-               dev_err(&pdev->dev, "Could not register PCM\n");
+       if (ret)
                return ret;
-       }
 
        return 0;
 }