Skip to content

Commit

Permalink
ASoC: mediatek: mt7986-afe-pcm: Remove redundant error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tang Bin authored and broonie committed Sep 12, 2024
1 parent d69f11e commit f6e2e73
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sound/soc/mediatek/mt7986/mt7986-afe-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f6e2e73

Please sign in to comment.