diff options
author | Damjan Marion <damarion@cisco.com> | 2019-11-12 11:00:27 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-11-12 20:53:51 +0000 |
commit | adb71a74d91efd464408eca805740deddc3559fa (patch) | |
tree | 3ddf4e5051316d47de082da24b726f5e4ce70f7b /src/vnet/devices | |
parent | 9485d99bd3941b13abf7e47fc7e1d56f7b4fee55 (diff) |
virtio: remove unused code
Type: refactor
Change-Id: I25f1cc3969c6a6ec1384079dc437537acd2ec152
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/devices')
-rw-r--r-- | src/vnet/devices/virtio/pci.c | 4 |
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); |