Messages in this thread Patch in this message | | | From | Xie Yongji <> | Subject | [RFC PATCH 16/17] vsock: Remove unused used length | Date | Mon, 17 May 2021 17:08:35 +0800 |
| |
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@bytedance.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
| |