diff options
author | Baokun Li <libaokun1@huawei.com> | 2021-06-09 10:18:03 +0300 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2021-08-09 23:49:48 +0300 |
commit | aa841a99f240142409c31167f3a28e4c0a7ac108 (patch) | |
tree | 393bf6b1c00e6e847eb3a54a683f07c2d7573d7e /drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | |
parent | d7bd351faabe848ec93d817a0520fcb9db12a89b (diff) | |
download | linux-aa841a99f240142409c31167f3a28e4c0a7ac108.tar.xz |
drm/vmwgfx: Use list_move_tail instead of list_del/list_add_tail in vmwgfx_cmdbuf.c
Using list_move_tail() instead of list_del() + list_add_tail() in vmwgfx_cmdbuf.c.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Signed-off-by: Zack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210609071803.1347254-1-libaokun1@huawei.com
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c index 81b84570da0a..4579612a782d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c @@ -358,8 +358,7 @@ static void vmw_cmdbuf_ctx_submit(struct vmw_cmdbuf_man *man, break; } - list_del(&entry->list); - list_add_tail(&entry->list, &ctx->hw_submitted); + list_move_tail(&entry->list, &ctx->hw_submitted); ctx->num_hw_submitted++; } |