Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1440a3a1 authored by Peng Tao's avatar Peng Tao Committed by David S. Miller
Browse files

vhost-vsock: remove unused vq variable

parent f91c58d6
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);