From fc9e9cad66ad651eb4a169f7467738123bc0766d Mon Sep 17 00:00:00 2001 From: Tuomas Taipale Date: Wed, 11 Oct 2023 09:17:44 +0000 Subject: [PATCH] validation: dma: fix early return with multiple async transfers When checking results for poll-mode asynchronous transfers, check the results of all expected transfers instead of already returning after a single check. Signed-off-by: Tuomas Taipale --- test/validation/api/dma/dma.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/validation/api/dma/dma.c b/test/validation/api/dma/dma.c index fc15be8f272..557e1ff0a53 100644 --- a/test/validation/api/dma/dma.c +++ b/test/validation/api/dma/dma.c @@ -663,9 +663,6 @@ static int do_transfer_async(odp_dma_t dma, odp_dma_transfer_param_t *trs_param, CU_ASSERT(user_data == USER_DATA); odp_dma_transfer_id_free(dma, compl_param[i].transfer_id); - - return done; - } else if (compl_mode == ODP_DMA_COMPL_EVENT) { odp_queue_t from = ODP_QUEUE_INVALID;