Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dan Carpenter and committed by
Mark Brown
aa326917 892e0d3f

+1 -2
+1 -2
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c
··· 3220 3220 /* request irq */ 3221 3221 irq_id = platform_get_irq(pdev, 0); 3222 3222 if (irq_id < 0) 3223 - return dev_err_probe(dev, irq_id < 0 ? irq_id : -ENXIO, 3224 - "no irq found"); 3223 + return dev_err_probe(dev, irq_id, "no irq found"); 3225 3224 3226 3225 ret = devm_request_irq(dev, irq_id, mt8188_afe_irq_handler, 3227 3226 IRQF_TRIGGER_NONE, "asys-isr", (void *)afe);