Skip to content

Commit

Permalink
vhost-vsock: remove unused vq variable
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Peng Tao authored and David S. Miller committed Dec 8, 2016
1 parent f91c58d commit 1440a3a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/vhost/vsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ static int
vhost_transport_send_pkt(struct virtio_vsock_pkt *pkt)
{
struct vhost_vsock *vsock;
struct vhost_virtqueue *vq;
int len = pkt->len;

/* Find the vhost_vsock according to guest context id */
Expand All @@ -205,8 +204,6 @@ vhost_transport_send_pkt(struct virtio_vsock_pkt *pkt)
return -ENODEV;
}

vq = &vsock->vqs[VSOCK_VQ_RX];

if (pkt->reply)
atomic_inc(&vsock->queued_replies);

Expand Down

0 comments on commit 1440a3a

Please sign in to comment.