[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210517090836.533-17-xieyongji@bytedance.com>
Date: Mon, 17 May 2021 17:08:35 +0800
From: Xie Yongji <xieyongji@...edance.com>
To: mst@...hat.com, jasowang@...hat.com, stefanha@...hat.com
Cc: amit@...nel.org, arei.gonglei@...wei.com, airlied@...ux.ie,
kraxel@...hat.com, dan.j.williams@...el.com,
johannes@...solutions.net, ohad@...ery.com,
bjorn.andersson@...aro.org, david@...hat.com, vgoyal@...hat.com,
miklos@...redi.hu, sgarzare@...hat.com,
virtualization@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org
Subject: [RFC PATCH 16/17] vsock: Remove unused used length
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@...edance.com>
---
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
Powered by blists - more mailing lists