aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-11-12 11:00:27 +0100
committerDave Barach <openvpp@barachs.net>2019-11-12 20:53:51 +0000
commitadb71a74d91efd464408eca805740deddc3559fa (patch)
tree3ddf4e5051316d47de082da24b726f5e4ce70f7b
parent9485d99bd3941b13abf7e47fc7e1d56f7b4fee55 (diff)
virtio: remove unused code
Type: refactor Change-Id: I25f1cc3969c6a6ec1384079dc437537acd2ec152 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--src/vnet/devices/virtio/pci.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/vnet/devices/virtio/pci.c b/src/vnet/devices/virtio/pci.c
index 1acbb3224f0..d83df990d4a 100644
--- a/src/vnet/devices/virtio/pci.c
+++ b/src/vnet/devices/virtio/pci.c
@@ -1320,10 +1320,6 @@ virtio_pci_delete_if (vlib_main_t * vm, virtio_if_t * vif)
vec_free (vif->txq_vrings);
vec_free (vif->cxq_vring);
- if (vif->fd != -1)
- vif->fd = -1;
- if (vif->tap_fd != -1)
- vif->tap_fd = -1;
clib_error_free (vif->error);
memset (vif, 0, sizeof (*vif));
pool_put (vim->interfaces, vif);