summaryrefslogtreecommitdiff
path: root/lib/librte_pmd_e1000
diff options
context:
space:
mode:
authorZijie Pan <zijie.pan@6wind.com>2012-12-04 17:17:43 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-07-25 16:07:51 +0200
commitcddaf87a1ecb8e44e934913a55703f9a568584d4 (patch)
tree7a42f4efd74cad5954b35a633741948215760260 /lib/librte_pmd_e1000
parentd55d942fa9ed42c3843f9108d46b757630b82957 (diff)
downloaddpdk-cddaf87a1ecb8e44e934913a55703f9a568584d4.zip
dpdk-cddaf87a1ecb8e44e934913a55703f9a568584d4.tar.gz
dpdk-cddaf87a1ecb8e44e934913a55703f9a568584d4.tar.xz
lib: fix unused values
Fix warnings of type "Value stored to 'xxx' is never read". 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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/librte_pmd_e1000/igb_rxtx.c b/lib/librte_pmd_e1000/igb_rxtx.c
index c942e1e..f70ea5a 100644
--- a/lib/librte_pmd_e1000/igb_rxtx.c
+++ b/lib/librte_pmd_e1000/igb_rxtx.c
@@ -1231,8 +1231,6 @@ eth_igb_tx_queue_setup(struct rte_eth_dev *dev,
txq->tx_ring_phys_addr = (uint64_t) tz->phys_addr;
txq->tx_ring = (union e1000_adv_tx_desc *) tz->addr;
- size = sizeof(union e1000_adv_tx_desc) * nb_desc;
-
/* Allocate software ring */
txq->sw_ring = rte_zmalloc("txq->sw_ring",
sizeof(struct igb_tx_entry) * nb_desc,