[RFC PATCH 16/17] vsock: Remove unused used length

From: Xie Yongji
Date: Mon May 17 2021 - 05:15:33 EST


The used length is not used in some cases. Let's drop it
and pass NULL to virtqueue_get_buf() instead.

Signed-off-by: Xie Yongji <xieyongji@xxxxxxxxxxxxx>
---
net/vmw_vsock/virtio_transport.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c
index 2700a63ab095..f0fc432c8697 100644
--- a/net/vmw_vsock/virtio_transport.c
+++ b/net/vmw_vsock/virtio_transport.c
@@ -298,10 +298,9 @@ static void virtio_transport_tx_work(struct work_struct *work)

do {
struct virtio_vsock_pkt *pkt;
- unsigned int len;

virtqueue_disable_cb(vq);
- while ((pkt = virtqueue_get_buf(vq, &len)) != NULL) {
+ while ((pkt = virtqueue_get_buf(vq, NULL)) != NULL) {
virtio_transport_free_pkt(pkt);
added = true;
}
--
2.11.0