summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/virtio_api.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2019-01-22 13:05:00 +0000
committerMohsin Kazmi <sykazmi@cisco.com>2019-01-24 09:46:48 +0000
commitddd218386835e5de18f452337822cfb0222a1d81 (patch)
tree57f3a05925472e57f5fd5baa9bae7039e723b409 /src/vnet/devices/virtio/virtio_api.c
parente43278f75fe3188551580c7d7991958805756e2f (diff)
virtio: Minor fixes and header cleanup
Change-Id: I2e5fd45abcd07e9eda6184587889bdcd9613a159 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/virtio_api.c')
-rw-r--r--src/vnet/devices/virtio/virtio_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/devices/virtio/virtio_api.c b/src/vnet/devices/virtio/virtio_api.c
index 6f70b090034..5035799befe 100644
--- a/src/vnet/devices/virtio/virtio_api.c
+++ b/src/vnet/devices/virtio/virtio_api.c
@@ -108,7 +108,7 @@ vl_api_virtio_pci_delete_t_handler (vl_api_virtio_pci_delete_t * mp)
{
vnet_main_t *vnm = vnet_get_main ();
vlib_main_t *vm = vlib_get_main ();
- virtio_main_t *vmx = &virtio_main;
+ virtio_main_t *vim = &virtio_main;
int rv = 0;
vnet_hw_interface_t *hw;
virtio_if_t *vif;
@@ -124,7 +124,7 @@ vl_api_virtio_pci_delete_t_handler (vl_api_virtio_pci_delete_t * mp)
goto reply;
}
- vif = pool_elt_at_index (vmx->interfaces, hw->dev_instance);
+ vif = pool_elt_at_index (vim->interfaces, hw->dev_instance);
rv = virtio_pci_delete_if (vm, vif);