ASoC: SOF: Intel: hda-dai: fix compilation warning in pcm_prepare
Subsystems (3)
PATCH 1/1 ASoC: SOF: Intel: hda-dai: fix compilation warning in pcm_prepare
Fix GCC warning with W=1, previous cleanup did not remove unnecessary variable.
sound/soc/sof/intel/hda-dai.c: In function ‘hda_link_pcm_prepare’:
sound/soc/sof/intel/hda-dai.c:265:31: warning: variable ‘hda_stream’ set but not used [-Wunused-but-set-variable]
265 | struct sof_intel_hda_stream *hda_stream;
| ^~~~~~~~~~--- sound/soc/sof/intel/hda-dai.c | 3 --- 1 file changed, 3 deletions(-)
sound/soc/sof/intel/hda-dai.c +0 -3
@@ -262,14 +262,11 @@ static int hda_link_pcm_prepare(struct snd_pcm_substream *substream, {struct hdac_ext_stream *link_dev =snd_soc_dai_get_dma_data (dai, substream); -struct sof_intel_hda_stream *hda_stream;struct snd_sof_dev *sdev =snd_soc_component_get_drvdata (dai->component);struct snd_soc_pcm_runtime *rtd =snd_pcm_substream_chip (substream);int stream = substream->stream; - hda_stream =hstream_to_sof_hda_stream (link_dev); -if (link_dev->link_prepared)return 0 ;
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: SOF: Intel: hda-dai: fix compilation warning in pcm_prepare" to the asoc tree
The patch
ASoC: SOF: Intel: hda-dai: fix compilation warning in pcm_prepare
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From d873997192ddcacb5333575502be2f91ea4b47b8 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 14:56:20 -0600
Subject: [PATCH] ASoC: SOF: Intel: hda-dai: fix compilation warning in
pcm_prepare
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fix GCC warning with W=1, previous cleanup did not remove unnecessary variable.
sound/soc/sof/intel/hda-dai.c: In function ‘hda_link_pcm_prepare’:
sound/soc/sof/intel/hda-dai.c:265:31: warning: variable ‘hda_stream’ set but not used [-Wunused-but-set-variable]
265 | struct sof_intel_hda_stream *hda_stream;
| ^~~~~~~~~~--- sound/soc/sof/intel/hda-dai.c | 3 --- 1 file changed, 3 deletions(-)
sound/soc/sof/intel/hda-dai.c +0 -3
@@ -262,14 +262,11 @@ static int hda_link_pcm_prepare(struct snd_pcm_substream *substream, {struct hdac_ext_stream *link_dev =snd_soc_dai_get_dma_data (dai, substream); -struct sof_intel_hda_stream *hda_stream;struct snd_sof_dev *sdev =snd_soc_component_get_drvdata (dai->component);struct snd_soc_pcm_runtime *rtd =snd_pcm_substream_chip (substream);int stream = substream->stream; - hda_stream =hstream_to_sof_hda_stream (link_dev); -if (link_dev->link_prepared)return 0 ;
Signature · 1 line
2.20.1
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel