summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <[email protected]>2016-05-04 06:15:36 +0200
committerEduardo Lima Mitev <[email protected]>2016-05-05 09:34:01 +0200
commit3a6763f0a078b2abc9a2b0dd43efc6efe73eee30 (patch)
treeab7a4ded3a1f2dee92f6a5c386e0c6bd1674153d /src/gallium/drivers/freedreno
parent8698194313f91a3aaec2ad84c4ea5a4892cf5f1a (diff)
freedreno: remove null check before free
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_resource.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c
index 99affc492d1..44558185a6b 100644
--- a/src/gallium/drivers/freedreno/freedreno_resource.c
+++ b/src/gallium/drivers/freedreno/freedreno_resource.c
@@ -262,8 +262,7 @@ fd_resource_transfer_unmap(struct pipe_context *pctx,
pipe_resource_reference(&ptrans->resource, NULL);
util_slab_free(&ctx->transfer_pool, ptrans);
- if (trans->staging)
- free(trans->staging);
+ free(trans->staging);
}
static void *