vhost-vsock: remove unused vq variable
authorPeng Tao <bergwolf@gmail.com>
Wed, 7 Dec 2016 09:52:18 +0000 (17:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Dec 2016 16:26:46 +0000 (11:26 -0500)
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/vsock.c

index e3b30ea..9c3c68b 100644 (file)
@@ -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  */
@@ -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);