Message ID | 1440044906-14248-1-git-send-email-yuanhan.liu@linux.intel.com |
---|---|
State | New |
Headers | show |
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 --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:
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(-)