mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 00:40:56 +07:00
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>
This commit is contained in:
parent
f91c58d68b
commit
1440a3a12b
@ -195,7 +195,6 @@ static int
|
|||||||
vhost_transport_send_pkt(struct virtio_vsock_pkt *pkt)
|
vhost_transport_send_pkt(struct virtio_vsock_pkt *pkt)
|
||||||
{
|
{
|
||||||
struct vhost_vsock *vsock;
|
struct vhost_vsock *vsock;
|
||||||
struct vhost_virtqueue *vq;
|
|
||||||
int len = pkt->len;
|
int len = pkt->len;
|
||||||
|
|
||||||
/* Find the vhost_vsock according to guest context id */
|
/* Find the vhost_vsock according to guest context id */
|
||||||
@ -205,8 +204,6 @@ vhost_transport_send_pkt(struct virtio_vsock_pkt *pkt)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
vq = &vsock->vqs[VSOCK_VQ_RX];
|
|
||||||
|
|
||||||
if (pkt->reply)
|
if (pkt->reply)
|
||||||
atomic_inc(&vsock->queued_replies);
|
atomic_inc(&vsock->queued_replies);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user