summaryrefslogtreecommitdiffstats
path: root/drivers/vhost
diff options
context:
space:
mode:
authorPeng Tao <bergwolf@gmail.com>2016-12-07 17:52:18 +0800
committerDavid S. Miller <davem@davemloft.net>2016-12-08 11:26:46 -0500
commit1440a3a12ba0a00f9fec7e6a62e49b11e079d381 (patch)
tree64cbfd2d46fca210408a0b6bcabb366e6d8e0f56 /drivers/vhost
parentf91c58d68b8638530e0eb2fec76c5b9e429ca39a (diff)
downloadlinux-1440a3a12ba0a00f9fec7e6a62e49b11e079d381.tar.bz2
vhost-vsock: remove unused vq variable
Signed-off-by: Peng Tao <bergwolf@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vhost')
-rw-r--r--drivers/vhost/vsock.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c
index e3b30ea9ece5..9c3c68b9a49e 100644
--- a/drivers/vhost/vsock.c
+++ b/drivers/vhost/vsock.c
@@ -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);