diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-12-09 04:54:12 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-12-12 11:55:22 -0500 |
commit | 2ef7ff03a9b050f393344a4537efb176de0c7eb2 (patch) | |
tree | c84e96f8e966302334e0c605c8aff5dc39d403a0 | |
parent | 920e00d62ef9a818a4af7b2f9e1dbca23f846fc1 (diff) |
dmaengine: sirf-dma: remove unused ‘sdesc’
In sirfsoc_dma_pm_suspend(), variable ‘sdesc’ is initialized but never used, which
leads to warning with W=1.
drivers/dma/sirf-dma.c: In function 'sirfsoc_dma_pm_suspend':
drivers/dma/sirf-dma.c:1014:27: warning: variable 'sdesc' set but not used [-Wunused-but-set-variable]
So remove it.
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/sirf-dma.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/dma/sirf-dma.c b/drivers/dma/sirf-dma.c index 8f62edad51be..a0733ac3edb1 100644 --- a/drivers/dma/sirf-dma.c +++ b/drivers/dma/sirf-dma.c | |||
@@ -1011,7 +1011,6 @@ static int __maybe_unused sirfsoc_dma_pm_suspend(struct device *dev) | |||
1011 | { | 1011 | { |
1012 | struct sirfsoc_dma *sdma = dev_get_drvdata(dev); | 1012 | struct sirfsoc_dma *sdma = dev_get_drvdata(dev); |
1013 | struct sirfsoc_dma_regs *save = &sdma->regs_save; | 1013 | struct sirfsoc_dma_regs *save = &sdma->regs_save; |
1014 | struct sirfsoc_dma_desc *sdesc; | ||
1015 | struct sirfsoc_dma_chan *schan; | 1014 | struct sirfsoc_dma_chan *schan; |
1016 | int ch; | 1015 | int ch; |
1017 | int ret; | 1016 | int ret; |
@@ -1044,9 +1043,6 @@ static int __maybe_unused sirfsoc_dma_pm_suspend(struct device *dev) | |||
1044 | schan = &sdma->channels[ch]; | 1043 | schan = &sdma->channels[ch]; |
1045 | if (list_empty(&schan->active)) | 1044 | if (list_empty(&schan->active)) |
1046 | continue; | 1045 | continue; |
1047 | sdesc = list_first_entry(&schan->active, | ||
1048 | struct sirfsoc_dma_desc, | ||
1049 | node); | ||
1050 | save->ctrl[ch] = readl_relaxed(sdma->base + | 1046 | save->ctrl[ch] = readl_relaxed(sdma->base + |
1051 | ch * 0x10 + SIRFSOC_DMA_CH_CTRL); | 1047 | ch * 0x10 + SIRFSOC_DMA_CH_CTRL); |
1052 | } | 1048 | } |