From: Emmanuel Roullit Date: Tue, 24 Jan 2017 21:15:55 +0000 (+0100) Subject: net/bonding: remove useless assignment X-Git-Tag: spdx-start~4602 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2e056ec0dc1fca8a77b8ffbc81d094b51e404fcc;p=dpdk.git net/bonding: remove useless assignment Found with clang static analysis: drivers/net/bonding/rte_eth_bond_pmd.c:903:3: warning: Value stored to 'num_not_send' is never read num_not_send += slave_bufs_pkts[RTE_MAX_ETHPORTS] - num_send; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 06fe78b98ccd ("bond: add mode 6") Cc: stable@dpdk.org Signed-off-by: Emmanuel Roullit --- diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 02e34483fb..f3ac9e273e 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -900,7 +900,6 @@ bond_ethdev_tx_burst_alb(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) } num_tx_total += num_send; - num_not_send += slave_bufs_pkts[RTE_MAX_ETHPORTS] - num_send; } return num_tx_total;