All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: soc-pcm: fix BE transition for TRIGGER_START
@ 2022-05-20 21:06 Pierre-Louis Bossart
  2022-05-23 17:25 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:06 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

A obvious editing mistake caught with a cppcheck warning

sound/soc/soc-pcm.c:2132:8: style: Variable 'ret' is reassigned a
value before the old one has been used. [redundantAssignment]
   ret = soc_pcm_trigger(be_substream, cmd);
       ^
sound/soc/soc-pcm.c:2126:9: note: ret is assigned
    ret = soc_pcm_trigger(be_substream,
        ^
sound/soc/soc-pcm.c:2129:9: note: ret is assigned
    ret = soc_pcm_trigger(be_substream,
        ^

Fixes: 374b50e234a3e ('ASoC: soc-pcm: improve BE transition for TRIGGER_START')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/soc-pcm.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 6f43db35a5c84..a827cc3c158ae 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -2128,8 +2128,6 @@ int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream,
 			else
 				ret = soc_pcm_trigger(be_substream,
 						      SNDRV_PCM_TRIGGER_START);
-
-			ret = soc_pcm_trigger(be_substream, cmd);
 			if (ret) {
 				be->dpcm[stream].be_start--;
 				goto next;
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: soc-pcm: fix BE transition for TRIGGER_START
  2022-05-20 21:06 [PATCH] ASoC: soc-pcm: fix BE transition for TRIGGER_START Pierre-Louis Bossart
@ 2022-05-23 17:25 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-05-23 17:25 UTC (permalink / raw)
  To: alsa-devel, pierre-louis.bossart; +Cc: tiwai, peter.ujfalusi, yung-chuan.liao

On Fri, 20 May 2022 16:06:15 -0500, Pierre-Louis Bossart wrote:
> A obvious editing mistake caught with a cppcheck warning
> 
> sound/soc/soc-pcm.c:2132:8: style: Variable 'ret' is reassigned a
> value before the old one has been used. [redundantAssignment]
>    ret = soc_pcm_trigger(be_substream, cmd);
>        ^
> sound/soc/soc-pcm.c:2126:9: note: ret is assigned
>     ret = soc_pcm_trigger(be_substream,
>         ^
> sound/soc/soc-pcm.c:2129:9: note: ret is assigned
>     ret = soc_pcm_trigger(be_substream,
>         ^
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: soc-pcm: fix BE transition for TRIGGER_START
      commit: f4d6aca0c80f09f4c780136a64ee039560a2c39b

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] 2+ messages in thread

end of thread, other threads:[~2022-05-23 17:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 21:06 [PATCH] ASoC: soc-pcm: fix BE transition for TRIGGER_START Pierre-Louis Bossart
2022-05-23 17:25 ` 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.