drm/vmwgfx: Remove useless variable
Subsystems (3)
PATCH 1/1 drm/vmwgfx: Remove useless variable
Fix the following gcc warning:
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c:163:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable].
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c +1 -2
@@ -160,7 +160,6 @@ void vmw_cmdbuf_res_commit(struct list_head *list)void vmw_cmdbuf_res_revert (struct list_head *list) {struct vmw_cmdbuf_res *entry, *next; -int ret;list_for_each_entry_safe (entry, next, list, head) {switch (entry->state) {
@@ -168,7 +167,7 @@ void vmw_cmdbuf_res_revert(struct list_head *list)vmw_cmdbuf_res_free (entry->man, entry);break ;case VMW_CMDBUF_RES_DEL : - ret =drm_ht_insert_item (&entry->man->resources, +drm_ht_insert_item (&entry->man->resources, &entry->hash);list_del (&entry->head);list_add_tail (&entry->head, &entry->man->list);
Signature · 1 line
1.8.3.1