From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Laatz Subject: [PATCH] app/testpmd: fix logically dead code Date: Tue, 17 Jul 2018 11:34:05 +0100 Message-ID: <20180717103405.6793-1-kevin.laatz@intel.com> Cc: jasvinder.singh@intel.com, bernard.iremonger@intel.com, Kevin Laatz To: dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id D9F93235 for ; Tue, 17 Jul 2018 12:35:36 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Remove logically dead code, tm_port_rate cannot be greater than UINT32_MAX. Coverity issue: 302846 Fixes: 0ad778b398c6 ("app/testpmd: rework softnic forward mode") Signed-off-by: Kevin Laatz --- app/test-pmd/softnicfwd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/test-pmd/softnicfwd.c b/app/test-pmd/softnicfwd.c index 1f9eeaf..7ff6228 100644 --- a/app/test-pmd/softnicfwd.c +++ b/app/test-pmd/softnicfwd.c @@ -175,9 +175,6 @@ set_tm_hiearchy_nodes_shaper_rate(portid_t port_id, rte_eth_link_get(port_id, &link_params); tm_port_rate = (uint64_t)ETH_SPEED_NUM_10G * BYTES_IN_MBPS; - if (tm_port_rate > UINT32_MAX) - tm_port_rate = UINT32_MAX; - /* Set tm hierarchy shapers rate */ h->root_node_shaper_rate = tm_port_rate; h->subport_node_shaper_rate = -- 2.9.5