Patch "drm/vmwgfx/vmwgfx_cmdbuf_res: Remove unused variable 'ret'" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/vmwgfx/vmwgfx_cmdbuf_res: Remove unused variable 'ret'

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-vmwgfx-vmwgfx_cmdbuf_res-remove-unused-variable-.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e09932a0db5a6806780e673f1c0933d5d013f118
Author: Lee Jones <lee@xxxxxxxxxx>
Date:   Fri Jan 15 18:13:12 2021 +0000

    drm/vmwgfx/vmwgfx_cmdbuf_res: Remove unused variable 'ret'
    
    [ Upstream commit 43ebfe61c3928573a5ef8d80c2f5300aa5c904c0 ]
    
    Fixes the following W=1 kernel build warning(s):
    
     drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c: In function ‘vmw_cmdbuf_res_revert’:
     drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c:162:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
    
    Cc: VMware Graphics <linux-graphics-maintainer@xxxxxxxxxx>
    Cc: Roland Scheidegger <sroland@xxxxxxxxxx>
    Cc: Zack Rusin <zackr@xxxxxxxxxx>
    Cc: David Airlie <airlied@xxxxxxxx>
    Cc: Daniel Vetter <daniel@xxxxxxxx>
    Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx
    Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
    Signed-off-by: Zack Rusin <zackr@xxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-40-lee.jones@xxxxxxxxxx
    Stable-dep-of: 517621b70600 ("drm/vmwgfx: Fix possible null pointer derefence with invalid contexts")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c
index 44d858ce4ce7f..47b92d0c898a7 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c
@@ -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,8 +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,
-						 &entry->hash);
+			drm_ht_insert_item(&entry->man->resources, &entry->hash);
 			list_del(&entry->head);
 			list_add_tail(&entry->head, &entry->man->list);
 			entry->state = VMW_CMDBUF_RES_COMMITTED;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux