]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: AMD: remove unused ‘dma_buffer’
authorVinod Koul <vinod.koul@intel.com>
Thu, 8 Dec 2016 17:31:30 +0000 (23:01 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 15 Dec 2016 11:20:59 +0000 (11:20 +0000)
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>
sound/soc/amd/acp-pcm-dma.c

index 504c7cd7f58a335b4c5c35c1cccb36f5d4536c22..818b052377f3f2e656d77ad12e835df299663872 100644 (file)
@@ -670,13 +670,10 @@ static int acp_dma_hw_params(struct snd_pcm_substream *substream,
 {
        int status;
        uint64_t size;
-       struct snd_dma_buffer *dma_buffer;
        struct page *pg;
        struct snd_pcm_runtime *runtime;
        struct audio_substream_data *rtd;
 
-       dma_buffer = &substream->dma_buffer;
-
        runtime = substream->runtime;
        rtd = runtime->private_data;