From adb71a74d91efd464408eca805740deddc3559fa Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 12 Nov 2019 11:00:27 +0100 Subject: virtio: remove unused code Type: refactor Change-Id: I25f1cc3969c6a6ec1384079dc437537acd2ec152 Signed-off-by: Damjan Marion --- src/vnet/devices/virtio/pci.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/vnet') 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); -- cgit 1.2.3-korg