From: Aaron Conole Date: Tue, 22 Mar 2016 21:37:18 +0000 (-0400) Subject: ixgbe: fix uninitialized warning X-Git-Tag: spdx-start~7130 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e64a0edb01812bb688c32ddda18eede344ffe163;p=dpdk.git ixgbe: fix uninitialized warning Silence a compiler warning that this variable may be used uninitialized. Signed-off-by: Aaron Conole Acked-by: Helin Zhang --- diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index 89c0eb9883..b018ba7ed1 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c @@ -1616,7 +1616,7 @@ ixgbe_recv_pkts_lro(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts, struct ixgbe_rx_entry *rxe; struct ixgbe_scattered_rx_entry *sc_entry; struct ixgbe_scattered_rx_entry *next_sc_entry; - struct ixgbe_rx_entry *next_rxe; + struct ixgbe_rx_entry *next_rxe = NULL; struct rte_mbuf *first_seg; struct rte_mbuf *rxm; struct rte_mbuf *nmb; @@ -1793,7 +1793,7 @@ next_desc: * the pointer to the first mbuf at the NEXTP entry in the * sw_sc_ring and continue to parse the RX ring. */ - if (!eop) { + if (!eop && next_rxe) { rxm->next = next_rxe->mbuf; next_sc_entry->fbuf = first_seg; goto next_desc;