summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiwei Bie <tiwei.bie@intel.com>2018-07-25 15:42:07 +0800
committerTiwei Bie <tiwei.bie@intel.com>2018-08-02 04:41:49 +0200
commitadead74939619df6d28aafab54051a139539d4e9 (patch)
tree46cb2429c9acd9d2de518e6045d812cb8a69beb1
parentcf63e032737a61fbfb38247269e21184d8928375 (diff)
downloaddpdk-adead74939619df6d28aafab54051a139539d4e9.zip
dpdk-adead74939619df6d28aafab54051a139539d4e9.tar.gz
dpdk-adead74939619df6d28aafab54051a139539d4e9.tar.xz
vhost: remove unused variable
The nr_updated is just increased and not really used. Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
-rw-r--r--lib/librte_vhost/virtio_net.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c
index 07c8237..99c7afc 100644
--- a/lib/librte_vhost/virtio_net.c
+++ b/lib/librte_vhost/virtio_net.c
@@ -1342,7 +1342,6 @@ virtio_dev_tx_split(struct virtio_net *dev, struct vhost_virtqueue *vq,
if (unlikely(dev->dequeue_zero_copy)) {
struct zcopy_mbuf *zmbuf, *next;
- int nr_updated = 0;
for (zmbuf = TAILQ_FIRST(&vq->zmbuf_list);
zmbuf != NULL; zmbuf = next) {
@@ -1351,8 +1350,6 @@ virtio_dev_tx_split(struct virtio_net *dev, struct vhost_virtqueue *vq,
if (mbuf_is_consumed(zmbuf->mbuf)) {
update_shadow_used_ring_split(vq,
zmbuf->desc_idx, 0);
- nr_updated += 1;
-
TAILQ_REMOVE(&vq->zmbuf_list, zmbuf, next);
restore_mbuf(zmbuf->mbuf);
rte_pktmbuf_free(zmbuf->mbuf);