From a75cc7772cc9d044c972336bdd4247f15cc49aa0 Mon Sep 17 00:00:00 2001 From: Zijie Pan Date: Fri, 1 Feb 2013 12:43:29 +0100 Subject: [PATCH] lib: fix uninitialized variables Fix compilation errors caused by uninitialized variables. Signed-off-by: Krzysztof Witek Signed-off-by: Zijie Pan Acked-by: Ivan Boule Acked-by: Adrien Mazarguil --- lib/librte_pmd_e1000/igb_rxtx.c | 4 ++-- lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_pmd_e1000/igb_rxtx.c b/lib/librte_pmd_e1000/igb_rxtx.c index f70ea5a712..c7548fcd63 100644 --- a/lib/librte_pmd_e1000/igb_rxtx.c +++ b/lib/librte_pmd_e1000/igb_rxtx.c @@ -336,8 +336,8 @@ eth_igb_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t tx_last; uint16_t nb_tx; uint16_t tx_ol_req; - uint32_t new_ctx; - uint32_t ctx; + uint32_t new_ctx = 0; + uint32_t ctx = 0; uint32_t vlan_macip_lens; txq = tx_queue; diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c index 30a3aafb29..2cc2090d37 100755 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c @@ -686,7 +686,7 @@ ixgbe_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_used; uint16_t tx_ol_req; uint32_t vlan_macip_lens; - uint32_t ctx; + uint32_t ctx = 0; uint32_t new_ctx; txq = tx_queue; -- 2.20.1