Skip to content

Commit

Permalink
validation: dma: fix early return with multiple async transfers
Browse files Browse the repository at this point in the history
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 <tuomas.taipale@nokia.com>
  • Loading branch information
TuomasTaipale committed Oct 11, 2023
1 parent e554204 commit fc9e9ca
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/validation/api/dma/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fc9e9ca

Please sign in to comment.