From: Reshma Pattan Date: Fri, 15 Jul 2016 09:19:10 +0000 (+0100) Subject: app/testpmd: remove redundant timer update X-Git-Tag: spdx-start~6151 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0e3d2a9efa4dcfd775140f724abe113a04df68e4;p=dpdk.git app/testpmd: remove redundant timer update 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 Acked-by: Pablo de Lara --- diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index b7f28e960b..1428974ec3 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; } }