diff mbox

vhost: remove unnecessary code

Message ID 1440044906-14248-1-git-send-email-yuanhan.liu@linux.intel.com
State New
Headers show

Commit Message

Yuanhan Liu Aug. 20, 2015, 4:28 a.m. UTC
We won't reference var 'i' anymore; there is no need to assign a value
to it.

cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
---
 hw/virtio/vhost.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Marc-André Lureau Aug. 21, 2015, 11:32 a.m. UTC | #1
Hi

On Thu, Aug 20, 2015 at 6:28 AM, Yuanhan Liu
<yuanhan.liu@linux.intel.com> wrote:
> We won't reference var 'i' anymore; there is no need to assign a value
> to it.
>
> cc: Michael S. Tsirkin <mst@redhat.com>
> Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
> ---
>  hw/virtio/vhost.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
> index 2712c6f..86ea26f 100644
> --- a/hw/virtio/vhost.c
> +++ b/hw/virtio/vhost.c
> @@ -1158,7 +1158,6 @@ fail_vq:
>                               hdev->vqs + i,
>                               hdev->vq_index + i);
>      }
> -    i = hdev->nvqs;
>  fail_mem:
>  fail_features:
>

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
diff mbox

Patch

diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
index 2712c6f..86ea26f 100644
--- a/hw/virtio/vhost.c
+++ b/hw/virtio/vhost.c
@@ -1158,7 +1158,6 @@  fail_vq:
                              hdev->vqs + i,
                              hdev->vq_index + i);
     }
-    i = hdev->nvqs;
 fail_mem:
 fail_features: