ASoC: mediatek: mt8192: Delete a redundant condition branch
Subsystems (3)
PATCH 1/1 ASoC: mediatek: mt8192: Delete a redundant condition branch
The statement of the "if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2)" branch is the same as the "else" branch. Delete it to simplify code.
No functional change.
--- sound/soc/mediatek/mt8192/mt8192-dai-adda.c | 2 -- 1 file changed, 2 deletions(-)
sound/soc/mediatek/mt8192/mt8192-dai-adda.c +0 -2
@@ -413,8 +413,6 @@ static int mtk_adda_pad_top_event(struct snd_soc_dapm_widget *w,case SND_SOC_DAPM_PRE_PMU :if (afe_priv->mtkaif_protocol ==MTKAIF_PROTOCOL_2_CLK_P2 )regmap_write (afe->regmap,AFE_AUD_PAD_TOP ,0x38 ); -else if (afe_priv->mtkaif_protocol ==MTKAIF_PROTOCOL_2 ) -regmap_write (afe->regmap,AFE_AUD_PAD_TOP ,0x30 );else regmap_write (afe->regmap,AFE_AUD_PAD_TOP ,0x30 );break ;
Signature · 8 lines
2.26.0.106.g9fadedd _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
Mark Brown
maintainerQuoted 4 lines · Zhen Lei
The statement of the "if (
afe_priv->mtkaif_protocol==MTKAIF_PROTOCOL_2)" branch is the same as the "else" branch. Delete it to simplify code.No functional change.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: mediatek: mt8192: Delete a redundant condition branch
commit: 85c966dc97d1c46a3079ec4c26714c9f8ec66823
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