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 | 1bc4f06c24a0fccd2ff9d81ca4b2ee4d3acb7fbb (patch) | |
tree | 0a1e600af88bddae8729c5029d8b9590a3415a62 /drivers/dma/stm32-dma.c | |
parent | b33f7832bbf24dd40322fd673b2d7e3493c8515f (diff) |
dmaengine: stm32-dma: remove unused ‘sfcr’
In stm32_dma_chan_irq(), variable ‘sfcr’ is initialized but never used, which
leads to warning with W=1
drivers/dma/stm32-dma.c: In function ‘stm32_dma_chan_irq’:
drivers/dma/stm32-dma.c:530:19: warning: variable ‘sfcr’ set but not used [-Wunused-but-set-variable]
u32 status, scr, sfcr;
So remove it.
Reviewed-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/stm32-dma.c')
-rw-r--r-- | drivers/dma/stm32-dma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/stm32-dma.c b/drivers/dma/stm32-dma.c index 307547f4848d..7f18192774e4 100644 --- a/drivers/dma/stm32-dma.c +++ b/drivers/dma/stm32-dma.c | |||
@@ -527,13 +527,12 @@ static irqreturn_t stm32_dma_chan_irq(int irq, void *devid) | |||
527 | { | 527 | { |
528 | struct stm32_dma_chan *chan = devid; | 528 | struct stm32_dma_chan *chan = devid; |
529 | struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); | 529 | struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); |
530 | u32 status, scr, sfcr; | 530 | u32 status, scr; |
531 | 531 | ||
532 | spin_lock(&chan->vchan.lock); | 532 | spin_lock(&chan->vchan.lock); |
533 | 533 | ||
534 | status = stm32_dma_irq_status(chan); | 534 | status = stm32_dma_irq_status(chan); |
535 | scr = stm32_dma_read(dmadev, STM32_DMA_SCR(chan->id)); | 535 | scr = stm32_dma_read(dmadev, STM32_DMA_SCR(chan->id)); |
536 | sfcr = stm32_dma_read(dmadev, STM32_DMA_SFCR(chan->id)); | ||
537 | 536 | ||
538 | if ((status & STM32_DMA_TCI) && (scr & STM32_DMA_SCR_TCIE)) { | 537 | if ((status & STM32_DMA_TCI) && (scr & STM32_DMA_SCR_TCIE)) { |
539 | stm32_dma_irq_clear(chan, STM32_DMA_TCI); | 538 | stm32_dma_irq_clear(chan, STM32_DMA_TCI); |