From 1b3fd9738824e19d80edfc96f734b4e089b83707 Mon Sep 17 00:00:00 2001 From: Kevin Laatz Date: Tue, 17 Jul 2018 11:34:05 +0100 Subject: [PATCH] app/testpmd: remove logically dead code 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 Acked-by: Bernard Iremonger --- 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 1f9eeaf40b..7ff622806f 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.20.1