dmaengine: dmatest: use DMA_COMPLETE for dma completion status
authorVinod Koul <vinod.koul@intel.com>
Wed, 16 Oct 2013 08:07:27 +0000 (13:37 +0530)
committerVinod Koul <vinod.koul@intel.com>
Fri, 25 Oct 2013 05:45:59 +0000 (11:15 +0530)
Acked-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmatest.c

index 92f796cdc6ab1dc12c6b895fb2d6e16e5dd92264..59e287f56dfca28bb0ff40fc79b6c0e612af58ac 100644 (file)
@@ -740,7 +740,7 @@ static int dmatest_func(void *data)
                                          len, 0);
                        failed_tests++;
                        continue;
-               } else if (status != DMA_SUCCESS) {
+               } else if (status != DMA_COMPLETE) {
                        enum dmatest_error_type type = (status == DMA_ERROR) ?
                                DMATEST_ET_DMA_ERROR : DMATEST_ET_DMA_IN_PROGRESS;
                        thread_result_add(info, result, type,