diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2024-02-01 17:48:06 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2024-02-06 14:46:29 +0200 |
commit | 1cf5ca392289c6a90d8bbf5134e66077e8ed36e5 (patch) | |
tree | 2799d6ac822de916f497faed7d9fc5d540a57037 /test | |
parent | 6e6e1bcf519f5f268e95434d897fa1907c7cf0ab (diff) |
test: dma_perf: avoid variable name shadowing
Fixes -Wshadow compiler warnings.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/performance/odp_dma_perf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/performance/odp_dma_perf.c b/test/performance/odp_dma_perf.c index b67c1fa23..2f4ca490d 100644 --- a/test/performance/odp_dma_perf.c +++ b/test/performance/odp_dma_perf.c @@ -251,14 +251,14 @@ static void init_config(prog_config_t *config) stats = &config->thread_config[i].stats; memset(sd, 0, sizeof(*sd)); - for (uint32_t i = 0U; i < MAX_SEGS; ++i) { - info = &sd->dma.infos[i]; + for (uint32_t j = 0U; j < MAX_SEGS; ++j) { + info = &sd->dma.infos[j]; info->compl_param.transfer_id = ODP_DMA_TRANSFER_ID_INVALID; info->compl_param.event = ODP_EVENT_INVALID; info->compl_param.queue = ODP_QUEUE_INVALID; odp_ticketlock_init(&info->lock); - sd->seg.src_pkt[i] = ODP_PACKET_INVALID; - sd->seg.dst_pkt[i] = ODP_PACKET_INVALID; + sd->seg.src_pkt[j] = ODP_PACKET_INVALID; + sd->seg.dst_pkt[j] = ODP_PACKET_INVALID; } sd->dma.handle = ODP_DMA_INVALID; |