lkml.org 
[lkml]   [2021]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH 16/17] vsock: Remove unused used length
Date
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
\
 
 \ /
  Last update: 2021-05-17 11:15    [W:0.953 / U:0.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site