dmaengine: tegra20-apb-dma: Only calculate residue if txstate exists.
authorPeter Griffin <peter.griffin@linaro.org>
Tue, 7 Jun 2016 17:38:40 +0000 (18:38 +0100)
committerVinod Koul <vinod.koul@intel.com>
Tue, 21 Jun 2016 16:05:00 +0000 (21:35 +0530)
commit71f7e6cc55003ca6f616ff4094253d28de5d9254
tree0e97aa6bad67fb634836a688258ace0c294cf075
parentb9ab9d10d9898cd022fece44a474e5ddb785d639
dmaengine: tegra20-apb-dma: Only calculate residue if txstate exists.

There is no point calculating the residue if there is
no txstate to store the value.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/tegra20-apb-dma.c