lib: fix uninitialized variables

Fix compilation errors caused by uninitialized variables.

Signed-off-by: Krzysztof Witek <krzysztof.witek@6wind.com>
Signed-off-by: Zijie Pan <zijie.pan@6wind.com>
Acked-by: Ivan Boule <ivan.boule@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
This commit is contained in:
Zijie Pan 2013-02-01 12:43:29 +01:00 committed by Thomas Monjalon
parent cddaf87a1e
commit a75cc7772c
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;