net/ice: resolve unchecked return value
PATCH 1/1 net/ice: resolve unchecked return value
This checks the return value of the function ice_xmit_cleanup
Coverity issue: 353623
Fixes 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx")
Signed-off-by Sunil Pai G <[email protected]>
--- drivers/net/ice/ice_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_rxtx.c +1 -1
@@ -2471,7 +2471,7 @@ ice_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) -ice_xmit_cleanup (txq); + (void )ice_xmit_cleanup (txq);for (nb_tx =0 ; nb_tx < nb_pkts; nb_tx++) { tx_pkt = *tx_pkts++;
Signature · 1 line
2.17.1
Quoted 5 lines · Sunil Pai G
This checks the return value of the function
ice_xmit_cleanupCoverity issue: 353623
Fixes 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx")
Quoted 22 lines
Signed-off-by Sunil Pai G <[email protected]>---
drivers/net/ice/ice_rxtx.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ice/ice_rxtx.c +1
-1@@ -2471,7 +2471,7 @@ ice_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) -ice_xmit_cleanup (txq); + (void )ice_xmit_cleanup (txq);for (nb_tx =0 ; nb_tx < nb_pkts; nb_tx++) { tx_pkt = *tx_pkts++;Signature · 1 line
2.17.1
Acked-by Xiaolong Ye <[email protected]>
Applied to dpdk-next-net-intel, Thanks.