ASoC: fsl_xcvr: Omit superfluous error message in fsl_xcvr_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Thu, 24 Jun 2021 10:45:05 +0000 (18:45 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 11 Jul 2021 22:48:38 +0000 (23:48 +0100)
In the function fsl_xcvr__probe(), when get irq failed,
the function platform_get_irq() logs an error message, so remove
redundant message here.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20210624104505.13680-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_xcvr.c

index fb7c29fc39d751809e68fb43ddc944458fce00ca..31c5ee641fe76268ce5e16d38d71d36372d024f0 100644 (file)
@@ -1189,10 +1189,8 @@ static int fsl_xcvr_probe(struct platform_device *pdev)
 
        /* get IRQs */
        irq = platform_get_irq(pdev, 0);
-       if (irq < 0) {
-               dev_err(dev, "no irq[0]: %d\n", irq);
+       if (irq < 0)
                return irq;
-       }
 
        ret = devm_request_irq(dev, irq, irq0_isr, 0, pdev->name, xcvr);
        if (ret) {