diff options
author | Christian Gmeiner <[email protected]> | 2019-11-29 15:15:27 +0100 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2019-11-29 16:22:40 +0100 |
commit | 1be220833c18139ff9f3c7c9237deeb726ba5c55 (patch) | |
tree | 2b80a34de224d010b89c869e0cdaebc49d086edc /src/gallium | |
parent | 1dfe6a3e9ae461d81c96da256a0017f02252f1ae (diff) |
etnaviv: remove dead code
ptiled is always NULL so the if statement is useless.
CoverityID: 1415572
Fixes: b9627765303 ("etnaviv: rework compatible render base")
CC: <[email protected]>
Reviewed-by: Jonathan Marek <[email protected]>
Signed-off-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_resource.c | 3 |
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 f4200be437d..03b3ef8719e 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_resource.c +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c @@ -494,7 +494,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", @@ -568,8 +567,6 @@ etna_resource_from_handle(struct pipe_screen *pscreen, fail: etna_resource_destroy(pscreen, prsc); - if (ptiled) - etna_resource_destroy(pscreen, ptiled); return NULL; } |