summaryrefslogtreecommitdiff
path: root/lib/librte_pmd_e1000
diff options
context:
space:
mode:
authorZijie Pan <zijie.pan@6wind.com>2013-02-01 12:43:29 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-07-25 16:07:51 +0200
commita75cc7772cc9d044c972336bdd4247f15cc49aa0 (patch)
treec592f81f1faea7726611e274c13733bd5471c00f /lib/librte_pmd_e1000
parentcddaf87a1ecb8e44e934913a55703f9a568584d4 (diff)
downloaddpdk-a75cc7772cc9d044c972336bdd4247f15cc49aa0.zip
dpdk-a75cc7772cc9d044c972336bdd4247f15cc49aa0.tar.gz
dpdk-a75cc7772cc9d044c972336bdd4247f15cc49aa0.tar.xz
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>
Diffstat (limited to 'lib/librte_pmd_e1000')
-rw-r--r--lib/librte_pmd_e1000/igb_rxtx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librte_pmd_e1000/igb_rxtx.c b/lib/librte_pmd_e1000/igb_rxtx.c
index f70ea5a..c7548fc 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;