[Mesa-dev] [PATCH 06/14] svga: remove duplicated variable in svga_texture_transfer_map()

Brian Paul brianp at vmware.com
Fri Aug 26 15:27:10 UTC 2016


tex was already declared at the function body scope.
---
 src/gallium/drivers/svga/svga_resource_texture.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c
index 9104b0a..450ed2b 100644
--- a/src/gallium/drivers/svga/svga_resource_texture.c
+++ b/src/gallium/drivers/svga/svga_resource_texture.c
@@ -525,7 +525,6 @@ svga_texture_transfer_map(struct pipe_context *pipe,
    }
    else {
       SVGA3dSize baseLevelSize;
-      struct svga_texture *tex = svga_texture(texture);
       struct svga_winsys_surface *surf = tex->handle;
       uint8_t *map;
       boolean retry;
-- 
1.9.1



More information about the mesa-dev mailing list