[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210517090836.533-6-xieyongji@bytedance.com>
Date: Mon, 17 May 2021 17:08:24 +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 05/17] drm/virtio: Remove unused used length
The used length is not used. Let's drop it and
pass NULL to virtqueue_get_buf() instead.
Signed-off-by: Xie Yongji <xieyongji@...edance.com>
---
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
Powered by blists - more mailing lists