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 05/17] drm/virtio: Remove unused used length
    Date
    The used length is not used. Let's drop it and
    pass NULL to virtqueue_get_buf() instead.

    Signed-off-by: Xie Yongji <xieyongji@bytedance.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
    \
     
     \ /
      Last update: 2021-05-17 11:10    [W:3.369 / U:0.592 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site