* [PATCH] ASoC: mediatek: mt8188: remove some dead code
@ 2023-01-26 9:26 ` Dan Carpenter
0 siblings, 0 replies; 6+ messages in thread
From: Dan Carpenter @ 2023-01-26 9:26 UTC (permalink / raw)
To: Liam Girdwood
Cc: Mark Brown, Jaroslav Kysela, Takashi Iwai, Matthias Brugger,
Trevor Wu, AngeloGioacchino Del Regno, Yang Li, alsa-devel,
linux-mediatek, kernel-janitors
We know that "irq < 0", so delete the unnecessary check.
Signed-off-by: Dan Carpenter <error27@gmail.com>
---
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 3 +--
1 file changed, 1 insertion(+), 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);
--
2.35.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] ASoC: mediatek: mt8188: remove some dead code
@ 2023-01-26 9:26 ` Dan Carpenter
0 siblings, 0 replies; 6+ messages in thread
From: Dan Carpenter @ 2023-01-26 9:26 UTC (permalink / raw)
To: Liam Girdwood
Cc: alsa-devel, kernel-janitors, Takashi Iwai, Mark Brown, Yang Li,
Trevor Wu, Matthias Brugger, linux-mediatek,
AngeloGioacchino Del Regno
We know that "irq < 0", so delete the unnecessary check.
Signed-off-by: Dan Carpenter <error27@gmail.com>
---
sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 3 +--
1 file changed, 1 insertion(+), 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);
--
2.35.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] ASoC: mediatek: mt8188: remove some dead code
2023-01-26 9:26 ` Dan Carpenter
@ 2023-01-26 13:22 ` AngeloGioacchino Del Regno
-1 siblings, 0 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-01-26 13:22 UTC (permalink / raw)
To: Dan Carpenter, Liam Girdwood
Cc: Mark Brown, Jaroslav Kysela, Takashi Iwai, Matthias Brugger,
Trevor Wu, Yang Li, alsa-devel, linux-mediatek, kernel-janitors
Il 26/01/23 10:26, Dan Carpenter ha scritto:
> 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>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] ASoC: mediatek: mt8188: remove some dead code
@ 2023-01-26 13:22 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2023-01-26 13:22 UTC (permalink / raw)
To: Dan Carpenter, Liam Girdwood
Cc: alsa-devel, kernel-janitors, Takashi Iwai, Mark Brown, Yang Li,
Trevor Wu, Matthias Brugger, linux-mediatek
Il 26/01/23 10:26, Dan Carpenter ha scritto:
> 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>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] ASoC: mediatek: mt8188: remove some dead code
2023-01-26 9:26 ` Dan Carpenter
@ 2023-01-26 22:55 ` Mark Brown
-1 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2023-01-26 22:55 UTC (permalink / raw)
To: Liam Girdwood, Dan Carpenter
Cc: Jaroslav Kysela, Takashi Iwai, Matthias Brugger, Trevor Wu,
AngeloGioacchino Del Regno, Yang Li, alsa-devel, linux-mediatek,
kernel-janitors
On Thu, 26 Jan 2023 12:26:35 +0300, Dan Carpenter wrote:
> We know that "irq < 0", so delete the unnecessary check.
>
>
Applied to
broonie/sound.git for-next
Thanks!
[1/1] ASoC: mediatek: mt8188: remove some dead code
commit: aa326917f58fa577bfba8976da214080bdec2699
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] ASoC: mediatek: mt8188: remove some dead code
@ 2023-01-26 22:55 ` Mark Brown
0 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2023-01-26 22:55 UTC (permalink / raw)
To: Liam Girdwood, Dan Carpenter
Cc: alsa-devel, kernel-janitors, Takashi Iwai, Yang Li, Trevor Wu,
Matthias Brugger, linux-mediatek, AngeloGioacchino Del Regno
On Thu, 26 Jan 2023 12:26:35 +0300, Dan Carpenter wrote:
> We know that "irq < 0", so delete the unnecessary check.
>
>
Applied to
broonie/sound.git for-next
Thanks!
[1/1] ASoC: mediatek: mt8188: remove some dead code
commit: aa326917f58fa577bfba8976da214080bdec2699
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-01-26 22:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26 9:26 [PATCH] ASoC: mediatek: mt8188: remove some dead code Dan Carpenter
2023-01-26 9:26 ` Dan Carpenter
2023-01-26 13:22 ` AngeloGioacchino Del Regno
2023-01-26 13:22 ` AngeloGioacchino Del Regno
2023-01-26 22:55 ` Mark Brown
2023-01-26 22:55 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.