]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: mediatek: mt7986-afe-pcm: Remove redundant error message
authorTang Bin <tangbin@cmss.chinamobile.com>
Thu, 12 Sep 2024 08:41:10 +0000 (16:41 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 12 Sep 2024 17:05:27 +0000 (18:05 +0100)
In the function mt7986_afe_pcm_dev_probe, when get irq
failed, the function platform_get_irq() logs an error
message, so remove redundant one here.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://patch.msgid.link/20240912084110.1854-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt7986/mt7986-afe-pcm.c

index d400bea0ef9c3db88d0c916b6590b8d70d1457d9..7db090414d5980d7e79c4dee799cf88a1348e5e2 100644 (file)
@@ -529,10 +529,9 @@ static int mt7986_afe_pcm_dev_probe(struct platform_device *pdev)
 
        /* request irq */
        irq_id = platform_get_irq(pdev, 0);
-       if (irq_id < 0) {
-               ret = irq_id;
-               return dev_err_probe(dev, ret, "No irq found\n");
-       }
+       if (irq_id < 0)
+               return irq_id;
+
        ret = devm_request_irq(dev, irq_id, mt7986_afe_irq_handler,
                               IRQF_TRIGGER_NONE, "asys-isr", (void *)afe);
        if (ret)