summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-02-03 15:29:54 +0100
committerSuren A. Chilingaryan <csa@suren.me>2015-02-03 15:29:54 +0100
commitc1df150330d0675da6a373954a4f3634be947048 (patch)
treef9671fdcdddaea5ff9ddfb31010ff3b99a053db5
parentfe6a3fc5e79ed76c5f7bf84482698850aaedbae9 (diff)
downloadpcitool-c1df150330d0675da6a373954a4f3634be947048.tar.gz
pcitool-c1df150330d0675da6a373954a4f3634be947048.tar.bz2
pcitool-c1df150330d0675da6a373954a4f3634be947048.tar.xz
pcitool-c1df150330d0675da6a373954a4f3634be947048.zip
Properly return error code in NWLDMA benchmarking code
-rw-r--r--dma/nwl_loopback.c2
1 files changed, 1 insertions, 1 deletions
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