summaryrefslogtreecommitdiff
path: root/drivers/dma/sun6i-dma.c
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2016-06-29 17:08:38 +0100
committerVinod Koul <vinod.koul@intel.com>2016-06-30 08:53:15 +0530
commit004f614eded1b5746ef610bbe17eba11e4fb5733 (patch)
treed7e9ed63b4ceebc66b5b10e5a70d8f60d5325111 /drivers/dma/sun6i-dma.c
parent019bfcc65baa40a36ff0d1af611ecdc27199dad1 (diff)
downloadlwn-004f614eded1b5746ef610bbe17eba11e4fb5733.tar.gz
lwn-004f614eded1b5746ef610bbe17eba11e4fb5733.zip
dmaengine: tegra-apb: Remove duplicated residue calculation
The calculation of the DMA residue for the Tegra APB DMA is duplicated in two places in the tegra_dma_tx_status() function. Remove this duplicated code by moving calculation to the end of the function and only calculating if we found a valid descriptor. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/sun6i-dma.c')
0 files changed, 0 insertions, 0 deletions