Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: stm32-dma: remove unused ‘src_addr’

In stm32_dma_set_xfer_param(), variable ‘src_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:13: warning: variable ‘src_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>

-2
-2
drivers/dma/stm32-dma.c
··· 573 573 int src_bus_width, dst_bus_width; 574 574 int src_burst_size, dst_burst_size; 575 575 u32 src_maxburst, dst_maxburst; 576 - dma_addr_t src_addr; 577 576 u32 dma_scr = 0; 578 577 579 578 src_addr_width = chan->dma_sconfig.src_addr_width; 580 579 dst_addr_width = chan->dma_sconfig.dst_addr_width; 581 580 src_maxburst = chan->dma_sconfig.src_maxburst; 582 581 dst_maxburst = chan->dma_sconfig.dst_maxburst; 583 - src_addr = chan->dma_sconfig.src_addr; 584 582 585 583 switch (direction) { 586 584 case DMA_MEM_TO_DEV: