r300g: remove double assignment
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 14 Jan 2018 19:31:55 +0000 (21:31 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 14 Jan 2018 21:04:49 +0000 (23:04 +0200)
Trivial. Found by Coccinelle.

src/gallium/drivers/r300/r300_texture.c

index 0658205f87926a9dab2703349c5b2b837667db57..6f8893eee6c995567050b05bef5a68796e463798 100644 (file)
@@ -1234,7 +1234,6 @@ struct pipe_surface* r300_create_surface_custom(struct pipe_context * ctx,
         surface->base.u.tex.first_layer = surf_tmpl->u.tex.first_layer;
         surface->base.u.tex.last_layer = surf_tmpl->u.tex.last_layer;
 
-        surface->buf = tex->buf;
         surface->buf = tex->buf;
 
         /* Prefer VRAM if there are multiple domains to choose from. */