On Wed, Jun 29, 2016 at 05:08:38PM +0100, Jon Hunter wrote: > 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 > --- > drivers/dma/tegra20-apb-dma.c | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) Acked-by: Thierry Reding