From ba950e62762bd0198e53666ecc2a791767adc137 Mon Sep 17 00:00:00 2001 From: Beilei Xing Date: Wed, 12 Feb 2020 20:36:01 +0800 Subject: [PATCH] net/i40e: fix unchecked Tx cleanup error Coverity complains of unchecked return value warning of i40e_xmit_cleanup, while this cleanup is opportunistic and will not cause problems if it fails. So instead of checking the return value of i40e_xmit_cleanup and return in case of cleanup failure, we directly cast it to void function to make the Coverity happy. Coverity issue: 353617 Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: stable@dpdk.org Signed-off-by: Beilei Xing Acked-by: Xiaolong Ye --- drivers/net/i40e/i40e_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index fd1ae80da8..f6d23c9fb6 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -1039,7 +1039,7 @@ i40e_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) /* Check if the descriptor ring needs to be cleaned. */ if (txq->nb_tx_free < txq->tx_free_thresh) - i40e_xmit_cleanup(txq); + (void)i40e_xmit_cleanup(txq); for (nb_tx = 0; nb_tx < nb_pkts; nb_tx++) { td_cmd = 0; -- 2.20.1