diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2016-06-29 17:08:38 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-06-30 08:53:15 +0530 |
commit | 004f614eded1b5746ef610bbe17eba11e4fb5733 (patch) | |
tree | d7e9ed63b4ceebc66b5b10e5a70d8f60d5325111 /drivers/dma/ppc4xx | |
parent | 019bfcc65baa40a36ff0d1af611ecdc27199dad1 (diff) | |
download | lwn-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/ppc4xx')
0 files changed, 0 insertions, 0 deletions