aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2016-12-08 12:31:30 -0500
committerMark Brown <broonie@kernel.org>2016-12-15 06:20:59 -0500
commit30cd849771b56b2b71fe7ec5f090b86513a14b6d (patch)
tree4947e825c0f5db9ccccf978af615d01be6f609de
parenta5de5b74a50113564a1e0850e2da96c37c35e55d (diff)
ASoC: AMD: remove unused ‘dma_buffer’
In acp_dma_hw_params(), 'dma_buffer' is initialized, but not used. So remove it. sound/soc/amd/acp-pcm-dma.c: In function ‘acp_dma_hw_params’: sound/soc/amd/acp-pcm-dma.c:673:25: warning: variable ‘dma_buffer’ set but not used [-Wunused-but-set-variable] struct snd_dma_buffer *dma_buffer; Cc: Maruthi Bayyavarapu <maruthi.bayyavarapu@amd.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/amd/acp-pcm-dma.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c
index 504c7cd7f58a..818b052377f3 100644
--- a/sound/soc/amd/acp-pcm-dma.c
+++ b/sound/soc/amd/acp-pcm-dma.c
@@ -670,13 +670,10 @@ static int acp_dma_hw_params(struct snd_pcm_substream *substream,
670{ 670{
671 int status; 671 int status;
672 uint64_t size; 672 uint64_t size;
673 struct snd_dma_buffer *dma_buffer;
674 struct page *pg; 673 struct page *pg;
675 struct snd_pcm_runtime *runtime; 674 struct snd_pcm_runtime *runtime;
676 struct audio_substream_data *rtd; 675 struct audio_substream_data *rtd;
677 676
678 dma_buffer = &substream->dma_buffer;
679
680 runtime = substream->runtime; 677 runtime = substream->runtime;
681 rtd = runtime->private_data; 678 rtd = runtime->private_data;
682 679