Skip to content

Commit b401164

Browse files
YueHaibingthomashvmw
authored andcommitted
drm/vmwgfx: remove set but not used variable 'srf'
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:339:22: warning: variable srf set but not used [-Wunused-but-set-variable] 'srf' is never used, so can be removed. Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Thomas Hellstrom <[email protected]>
1 parent e2e9666 commit b401164

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_surface.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ static void vmw_hw_surface_destroy(struct vmw_resource *res)
336336
{
337337

338338
struct vmw_private *dev_priv = res->dev_priv;
339-
struct vmw_surface *srf;
340339
void *cmd;
341340

342341
if (res->func->destroy == vmw_gb_surface_destroy) {
@@ -360,7 +359,6 @@ static void vmw_hw_surface_destroy(struct vmw_resource *res)
360359
*/
361360

362361
mutex_lock(&dev_priv->cmdbuf_mutex);
363-
srf = vmw_res_to_srf(res);
364362
dev_priv->used_memory_size -= res->backup_size;
365363
mutex_unlock(&dev_priv->cmdbuf_mutex);
366364
}

0 commit comments

Comments
 (0)