Skip to contentSkip to conversation

net/ice: resolve unchecked return value

PATCH Applied Sunil Pai G 2 participants 2 messages Feb 12, 2020 – Feb 14, 2020 Network drivers

lore
Share & tools
lore
#0 lore raw

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")
---
 drivers/net/ice/ice_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_rxtx.c +1 -1
index ce5b8e6ca..60c411bfa 100644
@@ -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 on v1 1/1 Applied
#1 lore raw
Quoted 5 lines · Sunil Pai G

This checks the return value of the function ice_xmit_cleanup

Coverity issue: 353623

Fixes 17c7d0f9d6a4 ("net/ice: support basic Rx/Tx")
Quoted 22 lines

---
drivers/net/ice/ice_rxtx.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_rxtx.c +1 -1
index ce5b8e6ca..60c411bfa 100644
@@ -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

Applied to dpdk-next-net-intel, Thanks.