From c1df150330d0675da6a373954a4f3634be947048 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 3 Feb 2015 15:29:54 +0100 Subject: Properly return error code in NWLDMA benchmarking code --- dma/nwl_loopback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dma') diff --git a/dma/nwl_loopback.c b/dma/nwl_loopback.c index 53e0d48..381a462 100644 --- a/dma/nwl_loopback.c +++ b/dma/nwl_loopback.c @@ -98,7 +98,7 @@ double dma_nwl_benchmark(pcilib_dma_context_t *vctx, pcilib_dma_engine_addr_t dm err = pcilib_skip_dma(ctx->pcilib, readid); if (err) { pcilib_error("Can't start benchmark, devices continuously writes unexpected data using DMA engine"); - return err; + return -1; } #ifdef NWL_GENERATE_DMA_IRQ -- cgit v1.2.3