Skip to content
Commit 6ebb827f authored by YueHaibing's avatar YueHaibing Committed by Vinod Koul
Browse files

dmaengine: sun4i: use 'linear_mode' in sun4i_dma_prep_dma_cyclic



drivers/dma/sun4i-dma.c: In function sun4i_dma_prep_dma_cyclic:
drivers/dma/sun4i-dma.c:672:24: warning:
 variable linear_mode set but not used [-Wunused-but-set-variable]

commit ffc079a4 ("dmaengine: sun4i: Add support for cyclic requests with dedicated DMA")
involved this, explicitly using the value makes the code more readable.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200207024445.44600-1-yuehaibing@huawei.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 5ca3364a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment