[RFC PATCH 05/17] drm/virtio: Remove unused used length

From: Xie Yongji
Date: Mon May 17 2021 - 05:09:50 EST


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

Signed-off-by: Xie Yongji <xieyongji@xxxxxxxxxxxxx>
---
drivers/gpu/drm/virtio/virtgpu_vq.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/virtio/virtgpu_vq.c b/drivers/gpu/drm/virtio/virtgpu_vq.c
index cf84d382dd41..4b164bacc68e 100644
--- a/drivers/gpu/drm/virtio/virtgpu_vq.c
+++ b/drivers/gpu/drm/virtio/virtgpu_vq.c
@@ -186,10 +186,9 @@ static void free_vbuf(struct virtio_gpu_device *vgdev,
static void reclaim_vbufs(struct virtqueue *vq, struct list_head *reclaim_list)
{
struct virtio_gpu_vbuffer *vbuf;
- unsigned int len;
int freed = 0;

- while ((vbuf = virtqueue_get_buf(vq, &len))) {
+ while ((vbuf = virtqueue_get_buf(vq, NULL))) {
list_add_tail(&vbuf->list, reclaim_list);
freed++;
}
--
2.11.0