From 5723f4a5c05dcf02b6676dd32f836d4021457dd6 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Fri, 26 Oct 2018 19:36:55 +0200 Subject: virtio: remove the extra return call Change-Id: I6e43953a6ad1bd672e69d8377d18bd9614b469d8 Signed-off-by: Mohsin Kazmi --- src/vnet/devices/virtio/device.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/vnet/devices/virtio') 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; } -- cgit 1.2.3-korg