From: Grazvydas Ignotas Date: Sun, 14 Jan 2018 19:31:55 +0000 (+0200) Subject: r300g: remove double assignment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=047c6fe2c59712aa4db909ff3b3653009cd693bf;p=mesa.git r300g: remove double assignment Trivial. Found by Coccinelle. --- diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index 0658205f879..6f8893eee6c 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -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. */