summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2019-11-29 15:15:27 +0100
committerDylan Baker <dylan@pnwbakers.com>2019-12-03 10:23:46 -0800
commit4f026b2a05d41e3b91792729e0b8bf10f430943d (patch)
tree07d00f6b7b5694dcdc44a386d3d827e2b9e19899
parentd32a34a3f3d3a0c29164fb42f9796cf19dcd9a3d (diff)
downloadmesa-4f026b2a05d41e3b91792729e0b8bf10f430943d.tar.gz
mesa-4f026b2a05d41e3b91792729e0b8bf10f430943d.tar.bz2
mesa-4f026b2a05d41e3b91792729e0b8bf10f430943d.zip
etnaviv: remove dead code
ptiled is always NULL so the if statement is useless. CoverityID: 1415572 Fixes: b9627765303 ("etnaviv: rework compatible render base") CC: <mesa-stable@lists.freedesktop.org> Reviewed-by: Jonathan Marek <jonathan@marek.ca> Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> (cherry picked from commit 1be220833c18139ff9f3c7c9237deeb726ba5c55)
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_resource.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c
index cca8b64d7c6..f83e9b99a5e 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_resource.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c
@@ -498,7 +498,6 @@ etna_resource_from_handle(struct pipe_screen *pscreen,
struct etna_resource *rsc;
struct etna_resource_level *level;
struct pipe_resource *prsc;
- struct pipe_resource *ptiled = NULL;
DBG("target=%d, format=%s, %ux%ux%u, array_size=%u, last_level=%u, "
"nr_samples=%u, usage=%u, bind=%x, flags=%x",
@@ -572,8 +571,6 @@ etna_resource_from_handle(struct pipe_screen *pscreen,
fail:
etna_resource_destroy(pscreen, prsc);
- if (ptiled)
- etna_resource_destroy(pscreen, ptiled);
return NULL;
}