* [PATCH] ASoC: mediatek: mt8183: delete some unreachable code
@ 2020-12-11 10:10 ` Dan Carpenter
0 siblings, 0 replies; 5+ messages in thread
From: Dan Carpenter @ 2020-12-11 10:10 UTC (permalink / raw)
To: Liam Girdwood, Tzung-Bi Shih
Cc: alsa-devel, kernel-janitors, Takashi Iwai, Mark Brown,
linux-mediatek, Matthias Brugger
This has a goto followed by an unreachable return statement. The goto
is correct because it cleans up so the current runtime behavior is fine.
Let's delete the unreachable return statement.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
sound/soc/mediatek/mt8183/mt8183-afe-clk.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/soc/mediatek/mt8183/mt8183-afe-clk.c b/sound/soc/mediatek/mt8183/mt8183-afe-clk.c
index 48e81c5d52fc..cc4f8f4d3dab 100644
--- a/sound/soc/mediatek/mt8183/mt8183-afe-clk.c
+++ b/sound/soc/mediatek/mt8183/mt8183-afe-clk.c
@@ -584,7 +584,6 @@ int mt8183_mck_enable(struct mtk_base_afe *afe, int mck_id, int rate)
__func__, aud_clks[div_clk_id],
rate, ret);
goto ERR_SET_MCLK_RATE;
- return ret;
}
return 0;
--
2.29.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] ASoC: mediatek: mt8183: delete some unreachable code
@ 2020-12-11 10:10 ` Dan Carpenter
0 siblings, 0 replies; 5+ messages in thread
From: Dan Carpenter @ 2020-12-11 10:10 UTC (permalink / raw)
To: Liam Girdwood, Tzung-Bi Shih
Cc: alsa-devel, kernel-janitors, Takashi Iwai, Mark Brown,
linux-mediatek, Matthias Brugger
This has a goto followed by an unreachable return statement. The goto
is correct because it cleans up so the current runtime behavior is fine.
Let's delete the unreachable return statement.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
sound/soc/mediatek/mt8183/mt8183-afe-clk.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/soc/mediatek/mt8183/mt8183-afe-clk.c b/sound/soc/mediatek/mt8183/mt8183-afe-clk.c
index 48e81c5d52fc..cc4f8f4d3dab 100644
--- a/sound/soc/mediatek/mt8183/mt8183-afe-clk.c
+++ b/sound/soc/mediatek/mt8183/mt8183-afe-clk.c
@@ -584,7 +584,6 @@ int mt8183_mck_enable(struct mtk_base_afe *afe, int mck_id, int rate)
__func__, aud_clks[div_clk_id],
rate, ret);
goto ERR_SET_MCLK_RATE;
- return ret;
}
return 0;
--
2.29.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] ASoC: mediatek: mt8183: delete some unreachable code
@ 2020-12-11 10:10 ` Dan Carpenter
0 siblings, 0 replies; 5+ messages in thread
From: Dan Carpenter @ 2020-12-11 10:10 UTC (permalink / raw)
To: Liam Girdwood, Tzung-Bi Shih
Cc: alsa-devel, kernel-janitors, Takashi Iwai, Jaroslav Kysela,
Mark Brown, linux-mediatek, Matthias Brugger
This has a goto followed by an unreachable return statement. The goto
is correct because it cleans up so the current runtime behavior is fine.
Let's delete the unreachable return statement.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
sound/soc/mediatek/mt8183/mt8183-afe-clk.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/soc/mediatek/mt8183/mt8183-afe-clk.c b/sound/soc/mediatek/mt8183/mt8183-afe-clk.c
index 48e81c5d52fc..cc4f8f4d3dab 100644
--- a/sound/soc/mediatek/mt8183/mt8183-afe-clk.c
+++ b/sound/soc/mediatek/mt8183/mt8183-afe-clk.c
@@ -584,7 +584,6 @@ int mt8183_mck_enable(struct mtk_base_afe *afe, int mck_id, int rate)
__func__, aud_clks[div_clk_id],
rate, ret);
goto ERR_SET_MCLK_RATE;
- return ret;
}
return 0;
--
2.29.2
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ASoC: mediatek: mt8183: delete some unreachable code
2020-12-11 10:10 ` Dan Carpenter
@ 2020-12-11 17:49 ` Mark Brown
-1 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2020-12-11 17:49 UTC (permalink / raw)
To: Dan Carpenter, Liam Girdwood, Tzung-Bi Shih
Cc: Matthias Brugger, linux-mediatek, alsa-devel, kernel-janitors,
Takashi Iwai
On Fri, 11 Dec 2020 13:10:11 +0300, Dan Carpenter wrote:
> This has a goto followed by an unreachable return statement. The goto
> is correct because it cleans up so the current runtime behavior is fine.
> Let's delete the unreachable return statement.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: mediatek: mt8183: delete some unreachable code
commit: 1688dbe7a730e1c1ed05b9dde497288494d75ad4
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] 5+ messages in thread
* Re: [PATCH] ASoC: mediatek: mt8183: delete some unreachable code
@ 2020-12-11 17:49 ` Mark Brown
0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2020-12-11 17:49 UTC (permalink / raw)
To: Dan Carpenter, Liam Girdwood, Tzung-Bi Shih
Cc: Matthias Brugger, linux-mediatek, alsa-devel, kernel-janitors,
Takashi Iwai
On Fri, 11 Dec 2020 13:10:11 +0300, Dan Carpenter wrote:
> This has a goto followed by an unreachable return statement. The goto
> is correct because it cleans up so the current runtime behavior is fine.
> Let's delete the unreachable return statement.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: mediatek: mt8183: delete some unreachable code
commit: 1688dbe7a730e1c1ed05b9dde497288494d75ad4
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
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-12-11 17:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11 10:10 [PATCH] ASoC: mediatek: mt8183: delete some unreachable code Dan Carpenter
2020-12-11 10:10 ` Dan Carpenter
2020-12-11 10:10 ` Dan Carpenter
2020-12-11 17:49 ` Mark Brown
2020-12-11 17:49 ` 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.