aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2018-10-26 19:36:55 +0200
committerDamjan Marion <dmarion@me.com>2018-10-27 09:05:30 +0000
commit5723f4a5c05dcf02b6676dd32f836d4021457dd6 (patch)
tree30c80219584add909462c5ebde79470bea6c0482 /src/vnet/devices/virtio
parent5e48bbae26f92fc430d874026d33fca7b371c099 (diff)
virtio: remove the extra return call
Change-Id: I6e43953a6ad1bd672e69d8377d18bd9614b469d8 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio')
-rw-r--r--src/vnet/devices/virtio/device.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/vnet/devices/virtio/device.c b/src/vnet/devices/virtio/device.c
index 9b01b9183c8..69aca65bcef 100644
--- a/src/vnet/devices/virtio/device.c
+++ b/src/vnet/devices/virtio/device.c
@@ -288,14 +288,12 @@ virtio_interface_admin_up_down (vnet_main_t * vnm, u32 hw_if_index, u32 flags)
virtio_main_t *mm = &virtio_main;
vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index);
virtio_if_t *vif = pool_elt_at_index (mm->interfaces, hw->dev_instance);
- static clib_error_t *error = 0;
if (flags & VNET_SW_INTERFACE_FLAG_ADMIN_UP)
vif->flags |= VIRTIO_IF_FLAG_ADMIN_UP;
else
vif->flags &= ~VIRTIO_IF_FLAG_ADMIN_UP;
- return error;
return 0;
}