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 | 2a440bd417a57d26453c361951052656e4c837b1 (patch) | |
tree | 1a6a2f75ffd4ff4dc579d3c1fc06cd174712d47a | |
parent | 1bc4f06c24a0fccd2ff9d81ca4b2ee4d3acb7fbb (diff) |
dmaengine: stm32-dma: remove unused ‘dst_addr’
In stm32_dma_set_xfer_param(), variable ‘dst_addr’ is initialized but never used, which
leads to warning with W=1
drivers/dma/stm32-dma.c: In function ‘stm32_dma_set_xfer_param’:
drivers/dma/stm32-dma.c:577:23: warning: variable ‘dst_addr’ set but not used [-Wunused-but-set-variable]
dma_addr_t src_addr, dst_addr;
So remove it.
Reviewed-by: M'boumba Cedric Madianga <cedric.madianga@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-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 7f18192774e4..1f09189e31d9 100644 --- a/drivers/dma/stm32-dma.c +++ b/drivers/dma/stm32-dma.c | |||
@@ -573,7 +573,7 @@ static int stm32_dma_set_xfer_param(struct stm32_dma_chan *chan, | |||
573 | int src_bus_width, dst_bus_width; | 573 | int src_bus_width, dst_bus_width; |
574 | int src_burst_size, dst_burst_size; | 574 | int src_burst_size, dst_burst_size; |
575 | u32 src_maxburst, dst_maxburst; | 575 | u32 src_maxburst, dst_maxburst; |
576 | dma_addr_t src_addr, dst_addr; | 576 | dma_addr_t src_addr; |
577 | u32 dma_scr = 0; | 577 | u32 dma_scr = 0; |
578 | 578 | ||
579 | src_addr_width = chan->dma_sconfig.src_addr_width; | 579 | src_addr_width = chan->dma_sconfig.src_addr_width; |
@@ -581,7 +581,6 @@ static int stm32_dma_set_xfer_param(struct stm32_dma_chan *chan, | |||
581 | src_maxburst = chan->dma_sconfig.src_maxburst; | 581 | src_maxburst = chan->dma_sconfig.src_maxburst; |
582 | dst_maxburst = chan->dma_sconfig.dst_maxburst; | 582 | dst_maxburst = chan->dma_sconfig.dst_maxburst; |
583 | src_addr = chan->dma_sconfig.src_addr; | 583 | src_addr = chan->dma_sconfig.src_addr; |
584 | dst_addr = chan->dma_sconfig.dst_addr; | ||
585 | 584 | ||
586 | switch (direction) { | 585 | switch (direction) { |
587 | case DMA_MEM_TO_DEV: | 586 | case DMA_MEM_TO_DEV: |