diff options
author | Dan Carpenter <error27@gmail.com> | 2023-01-26 10:26:35 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-01-26 18:06:33 +0100 |
commit | aa326917f58fa577bfba8976da214080bdec2699 (patch) | |
tree | 9958575a5827557f7dc27d835a70f03b73116558 | |
parent | Update lpass dt-bindings (diff) | |
download | linux-aa326917f58fa577bfba8976da214080bdec2699.tar.xz linux-aa326917f58fa577bfba8976da214080bdec2699.zip |
ASoC: mediatek: mt8188: remove some dead code
We know that "irq < 0", so delete the unnecessary check.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/Y9JHSwcfdNcfMjjt@kili
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c b/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c index 57a31330e5f4..e8e84de86542 100644 --- a/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c +++ b/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c @@ -3220,8 +3220,7 @@ static int mt8188_afe_pcm_dev_probe(struct platform_device *pdev) /* request irq */ irq_id = platform_get_irq(pdev, 0); if (irq_id < 0) - return dev_err_probe(dev, irq_id < 0 ? irq_id : -ENXIO, - "no irq found"); + return dev_err_probe(dev, irq_id, "no irq found"); ret = devm_request_irq(dev, irq_id, mt8188_afe_irq_handler, IRQF_TRIGGER_NONE, "asys-isr", (void *)afe); |