Skip to contentSkip to conversation

ASoC: Intel: avs: Remove unused variable

PATCH In review Amadeusz Sławiński 2 participants 2 messages Oct 2, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: Intel: avs: Remove unused variable

Recent commit removed the only user of bus variable in avs_dai_fe_prepare(), also remove the variable itself.

---
 sound/soc/intel/avs/pcm.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/intel/avs/pcm.c +0 -2
index 7b84197bd8b9..5b31203bd56a 100644
@@ -603,7 +603,6 @@ static int avs_dai_fe_prepare(struct snd_pcm_substream *substream, struct snd_so
 	struct avs_dma_data *data;
 	struct avs_dev *adev = to_avs_dev(dai->dev);
 	struct hdac_ext_stream *host_stream;
-	struct hdac_bus *bus;
 	unsigned int format_val;
 	int ret;
 
@@ -613,7 +612,6 @@ static int avs_dai_fe_prepare(struct snd_pcm_substream *substream, struct snd_so
 	if (hdac_stream(host_stream)->prepared)
 		return 0;
 
-	bus = hdac_stream(host_stream)->bus;
 	snd_hdac_stream_reset(hdac_stream(host_stream));
 
 	format_val = snd_hdac_calc_stream_format(runtime->rate, runtime->channels, runtime->format,

base-commit: c0a68c96c76dfe139cd89e0b9ec40e25ded8e91d

Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 4 lines · Amadeusz Sławiński

Recent commit removed the only user of bus variable in avs_dai_fe_prepare(), also remove the variable itself.

Applied to

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

Thanks!

[1/1] ASoC: Intel: avs: Remove unused variable

      commit: 045059e4d3ce39104323fe01da61374ba73f31b3

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