Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: amd: remove set but not used variable 'dma_buffer'

Fixes gcc '-Wunused-but-set-variable' warning:

sound/soc/amd/raven/acp3x-pcm-dma.c: In function 'acp3x_dma_hw_params':
sound/soc/amd/raven/acp3x-pcm-dma.c:333:25: warning:
variable 'dma_buffer' set but not used [-Wunused-but-set-variable]

It never used since introduction in commit
8de1b5ed0337 ("ASoC: amd: add acp3x system resume pm op")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

YueHaibing and committed by
Mark Brown
424d5b56 d5a932e5

-2
-2
sound/soc/amd/raven/acp3x-pcm-dma.c
··· 322 322 { 323 323 int status; 324 324 u64 size; 325 - struct snd_dma_buffer *dma_buffer; 326 325 struct page *pg; 327 326 struct snd_pcm_runtime *runtime = substream->runtime; 328 327 struct i2s_stream_instance *rtd = runtime->private_data; ··· 329 330 if (!rtd) 330 331 return -EINVAL; 331 332 332 - dma_buffer = &substream->dma_buffer; 333 333 size = params_buffer_bytes(params); 334 334 status = snd_pcm_lib_malloc_pages(substream, size); 335 335 if (status < 0)