From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 4B5BBADD7 for ; Wed, 22 Jun 2016 18:15:43 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 22 Jun 2016 09:13:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,509,1459839600"; d="scan'208";a="993007048" Received: from sie-lab-214-241.ir.intel.com (HELO silpixa00382162.ir.intel.com) ([10.237.214.241]) by fmsmga001.fm.intel.com with ESMTP; 22 Jun 2016 09:13:58 -0700 From: Deepak Kumar Jain To: dev@dpdk.org Cc: john.griffin@intel.com, arkadiuszx.kusztal@intel.com, Deepak Kumar Jain Date: Wed, 22 Jun 2016 17:13:55 +0100 Message-Id: <1466612035-28013-1-git-send-email-deepak.k.jain@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dpdk-dev] [PATCH] app/test: fix for icc compilation error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2016 16:15:43 -0000 Icc complains about variable may be used without setting. Fixes: 97fe6461c7cbfb ("app/test: add SNOW 3G performance test) Signed-off-by: Deepak Kumar Jain --- app/test/test_cryptodev_perf.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/test/test_cryptodev_perf.c b/app/test/test_cryptodev_perf.c index e1adc99..e484cbb 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(); -- 2.5.5