qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] vhost: remove unnecessary code


From: Marc-André Lureau
Subject: Re: [Qemu-devel] [PATCH] vhost: remove unnecessary code
Date: Fri, 21 Aug 2015 13:32:11 +0200

Hi

On Thu, Aug 20, 2015 at 6:28 AM, Yuanhan Liu
<address@hidden> wrote:
> We won't reference var 'i' anymore; there is no need to assign a value
> to it.
>
> cc: Michael S. Tsirkin <address@hidden>
> Signed-off-by: Yuanhan Liu <address@hidden>
> ---
>  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 <address@hidden>






-- 
Marc-André Lureau



reply via email to

[Prev in Thread] Current Thread [Next in Thread]