From: Deepak Kumar Jain Date: Wed, 22 Jun 2016 16:13:55 +0000 (+0100) Subject: app/test: fix build with icc X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7e20853db5afaa02caacd9cdbaba7c400ed5b523;p=dpdk.git app/test: fix build with icc Icc complains about variable may be used without setting. Fixes: 97fe6461c7cbfb ("app/test: add SNOW 3G performance test") Signed-off-by: Deepak Kumar Jain Acked-by: John Griffin --- diff --git a/app/test/test_cryptodev_perf.c b/app/test/test_cryptodev_perf.c index e1adc99586..e484cbb53a 100644 --- a/app/test/test_cryptodev_perf.c +++ b/app/test/test_cryptodev_perf.c @@ -2458,18 +2458,17 @@ test_perf_aes_sha(uint8_t dev_id, uint16_t queue_id, /* Generate a burst of crypto operations */ for (i = 0; i < (pparams->burst_size * NUM_MBUF_SETS); i++) { - struct rte_mbuf *m = test_perf_create_pktmbuf( + mbufs[i] = test_perf_create_pktmbuf( ts_params->mbuf_mp, pparams->buf_size); - if (m == NULL) { + if (mbufs[i] == NULL) { printf("\nFailed to get mbuf - freeing the rest.\n"); for (k = 0; k < i; k++) rte_pktmbuf_free(mbufs[k]); return -1; } - mbufs[i] = m; } @@ -2587,18 +2586,17 @@ test_perf_snow3g(uint8_t dev_id, uint16_t queue_id, /* Generate a burst of crypto operations */ for (i = 0; i < (pparams->burst_size * NUM_MBUF_SETS); i++) { - struct rte_mbuf *m = test_perf_create_pktmbuf( + mbufs[i] = test_perf_create_pktmbuf( ts_params->mbuf_mp, pparams->buf_size); - if (m == NULL) { + if (mbufs[i] == NULL) { printf("\nFailed to get mbuf - freeing the rest.\n"); for (k = 0; k < i; k++) rte_pktmbuf_free(mbufs[k]); return -1; } - mbufs[i] = m; } tsc_start = rte_rdtsc_precise();