From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reshma Pattan Subject: [PATCH] app/testpmd: fix redundant time update Date: Fri, 15 Jul 2016 10:19:10 +0100 Message-ID: <1468574350-1275-1-git-send-email-reshma.pattan@intel.com> Cc: Reshma Pattan To: dev@dpdk.org Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 3B3E54AAD for ; Fri, 15 Jul 2016 11:19:35 +0200 (CEST) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Inside flush_fwd_rx_queues removed redundant prev_tsc update with cur_tsc, as prev_tsc value is always updated with rte_rdtsc() in for loop. Coverity issue: 127797 Fixes: f487715f36f5 ("app/testpmd: add timeout in Rx queue flushing") Signed-off-by: Reshma Pattan --- app/test-pmd/testpmd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index b7f28e9..1428974 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -907,7 +907,6 @@ flush_fwd_rx_queues(void) timer_tsc += diff_tsc; } while ((nb_rx > 0) && (timer_tsc < timer_period)); - prev_tsc = cur_tsc; timer_tsc = 0; } } -- 2.5.0