Applied "ASoC: rsnd: drop useles self-assignments" to the asoc tree
Subsystems (3)
Mark Brown
maintainerThe patch
ASoC: rsnd: drop useles self-assignments
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
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
Quoted 1 line
From
34157f7bec8276b4296cf2ec172fc13385ac8af7Mon Sep 17 00:00:00 2001
From: Wolfram Sang <[email protected]>
Date: Mon, 20 Feb 2017 21:58:34 +0100
Subject: [PATCH] ASoC: rsnd: drop useles self-assignments
Coverity reported (CID 1397992) this self-assignment. I think the code stays readable even with the assignments removed.
--- sound/soc/sh/rcar/core.c | 2 -- 1 file changed, 2 deletions(-)
sound/soc/sh/rcar/core.c +0 -2
@@ -674,12 +674,10 @@ static int rsnd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)/* set clock inversion */ switch (fmt &SND_SOC_DAIFMT_INV_MASK ) {case SND_SOC_DAIFMT_NB_IF : - rdai->bit_clk_inv = rdai->bit_clk_inv; rdai->frm_clk_inv = !rdai->frm_clk_inv;break ;case SND_SOC_DAIFMT_IB_NF : rdai->bit_clk_inv = !rdai->bit_clk_inv; - rdai->frm_clk_inv = rdai->frm_clk_inv;break ;case SND_SOC_DAIFMT_IB_IF : rdai->bit_clk_inv = !rdai->bit_clk_inv;
Signature · 1 line
2.11.0