]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_rxtx.c
net/mlx5: fix an uninitialized variable
[dpdk.git] / drivers / net / mlx5 / mlx5_rxtx.c
index 06b699afa05b3124cb1bf746116171b2d5ebabdd..fae9d271653cb8829c6a2fd079abd7abc84b7748 100644 (file)
@@ -1972,7 +1972,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n)
                &(*rxq->cqes)[rxq->cq_ci & cqe_cnt];
        unsigned int i = 0;
        unsigned int rq_ci = rxq->rq_ci << sges_n;
-       int len; /* keep its value across iterations. */
+       int len = 0; /* keep its value across iterations. */
 
        while (pkts_n) {
                unsigned int idx = rq_ci & wqe_cnt;