dmaengine: coh901318: Only calculate residue if txstate exists.
authorPeter Griffin <peter.griffin@linaro.org>
Tue, 7 Jun 2016 17:38:36 +0000 (18:38 +0100)
committerVinod Koul <vinod.koul@intel.com>
Tue, 21 Jun 2016 16:05:00 +0000 (21:35 +0530)
commit95b0aa3e10b08b9ee20b5f5e19d162d049744a9b
treef5afdc01c602a01f124189c671047b3acc3a44f2
parenta86144da9d1a439733a5aea526fe7c7b28b31d4a
dmaengine: coh901318: Only calculate residue if txstate exists.

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

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/coh901318.c